Uploading an image smaller than SMALL_IMAGE_SIZE still produces a link


When writing an article, uploading a an image file below the size specified in App_Code/Settings.cs:SMALL_IMAGE_SIZE does not create a copy (correct behavior), but still returns a link to a thumbnail (incorrect behavior).


BanTheRewind wrote Nov 9, 2010 at 10:10 PM

Easy fix. The makeSmall() function was already testing if the image was large enough to need a resize. I changed the return type of the function from void to bool. It now flags whether or not the link should be added.

wrote Nov 9, 2010 at 10:22 PM

wrote Feb 13, 2013 at 5:31 PM

wrote May 15, 2013 at 11:16 PM

wrote May 15, 2013 at 11:16 PM

wrote Jun 12, 2013 at 1:17 AM