This project is read-only.


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 11: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 11:22 PM

wrote Feb 13, 2013 at 6:31 PM

wrote May 16, 2013 at 12:16 AM

wrote May 16, 2013 at 12:16 AM

wrote Jun 12, 2013 at 2:17 AM