Version 2.1b released!

Posted on November 13, 2009

Better performance, better installation, better samples, more features!

Fixed

  • I finally tracked down a simple, yet elusive performance bug  that was particularly problematic for users with many thousands of images. Performance should be much better for everyone now, so upgrading is highly suggested.  This bug was introduced with version 2.0., and caused a filesystem listing hit for each request.
  • All requests are now forced to pass through the UrlAuthorizationModule now. Previously, any URL rewriting (like customfolders.cs) caused URL auth rules to be circumvented. This was documented behavior, but a secure solution has now been found.

Added

  • New users will find it much easier to get things working – Messing with IIS is now completely optional! :D :D
    Instead of writing  “image.jpg?width=500″ as you normally would, type “image.jpg.axd?width=500″. If you use the new syntax, you won’t be forced to configure wildcard mapping on IIS6/IIS7 classic.
    Both syntaxes will be supported in the future.
    The suggested extension is .axd, but that can be changed or disabled using the ResizeExtension application setting.
  • Dithering support added! You can dither an 8-bit image using the ?dither= command. You can specify a dither percent, “true”, or “4pass”.
  • UploadSample  project (in VB). Resizing images as they are uploaded is now trivally easy. ImageManager.BuildImage now accepts an HttpPostedFile instance for resizing.
  • DisableCustomQuantization setting to allow GIFs to be generated on servers where the Marshal class is prohibited.
  • PerfTests project to run benchmarks on the image resizing and encoding code.

Upgrade proccess

  1. Replace the old files with the new files from the ImageResizer folder. If you are using the .DLL, replace the DLL in the bin folder. Keep your old CustomFolders.cs and WatermarkSettings.cs files if you have modified them.
  2. Delete the /imagecache directory.
  3. Insert/change the following application settings in web.config if you want to use the new syntax.
<add key="ResizeExtension" value=".axd"/>
<add key="AllowURLRewriting" value="true"/>

If you are upgrading from 1.2, follow the 1.2->2.0 upgrade instructions first.

6 Responses to “Version 2.1b released!”

  1. Bubba
    Nov 15, 2009
    Reply

    I have the paid version. I have a virtual directory of photos that are used for three diffrent websites. There use to be directions on how to make that work in the comment section. Do you have an area to support that still?


    • Nathanael Jones
      Nov 16, 2009
      Reply

      I’m in the proccess of getting comments moved over to the new site – it’s non-trivial.

      Virtual directories should work fine if you have NTFS permissions set properly on them. If you have trouble, you can always turn a virtual folder into a virtual application, add the sample web.config to it, and put the .dll inside the /bin folder.


  2. Josh
    Nov 18, 2009
    Reply

    I’m getting a CRC error when trying to unzip the file using altools. I haven’t tried it on another machine, will do that tonight and report back.


  3. Bubba
    Nov 26, 2009
    Reply

    Is the upgrade from 2.0 to 2.1 free? If so how does one download it without going to paypal?


  4. emilioz
    Dec 01, 2009
    Reply

    Is the upgrade from 2.0 to 2.1 free???


    • Nathanael Jones
      Dec 04, 2009
      Reply

      Yes, it is – you should have received an e-mail with the download link a few weeks back. (The e-mail address it was purchased under).



Leave a Reply