Anyone know of a ASP.Net version of the famous PHP class “timthumb”? Just need a script which will work in the same line of “timthumb” and produce square or ratio based thumbnails with good quality for any sized images.
Here is the link to the php class: http://www.darrenhoyt.com/2008/04/02/timthumb-php-script-released/
I wrote this up just for you 🙂 … I tested it by trying all of the cases in http://www.binarymoon.co.uk/demo/timthumb-basic/ and comparing it visually side by side with my code. As far as I can tell it’s basically identical. With that said it does not support the ‘zc’ flag.
I wrote it as a generic handler (ashx file) so that it should run faster. Imaging caching is supported but I commented it out since it makes testing fixes very tough. Feel free to uncomment it for improved performance over the long run (one block right at the beginning and one near the end when it writes it to the memory stream).
—Code—
—Test Cases—