Funny, you look bigger in real life... Server side image resizing with the free and open source ImageResizer

Sign in to queue

The Discussion

  • User profile image
    amrelgarhy

    all http://imageresizingin.net/ are not opening, is it just my problem?

    Update:

    Now it is working fine.

  • User profile image
    gduncan411

    @amrelgarhy: Actually I'm seeing the problem too (i.e. I can't connect to it now either)... Sad

    Update: It's available for me now. Got to love the inter-tubes... :/

  • User profile image
    Christian

    Looks like it's down again...anyone get a copy of the source?

  • User profile image
    Stefan Bergfeldt

    Great!
    I've done one myself, but only for resizing and disk cache. That's all i've needed so far, but I'm definately is going to try this one.

  • User profile image
    Borum.NET

    Using a single resource in multiple variations is also referred to as "single source publishing" in CMS terms. It's a technique that truly eliminates a lot of tedious and error prone work from editors and lets them focus on content authoring.

    However, while this library is a step in the right direction, the use of query strings to parameterize the image processing is a feature that's begging to be exploited. Given enough query string variations, the disk runs out of storage and potentially brings down the service.

    I'm using another technique to achieve comparable features without potentially having the server run out of disk space because of malicious requests. I'm stacking "stream providers" on top of each other as profiles configured in e.g. an XML document. The profiles contains the configuration details of each "stream provider" and makes itself available as single query string parameter (i.e. "image.jpeg?profile=smallProfile").

    While I acknowledge this requires a bit more configuration, it's usually not much of an issue. Once the layout has been approved, all required image translations are basically reproduced as profiles and referenced from the generated markup.

  • User profile image
    Nathanael Jones

    The disk cache can be size-limited. The querystring approach is used by over 25+ CMSes (just the ones I know), in ASP.NET, php, Ruby, Python, and is quite well proven. So far I haven't heard of anyone bothering to use it as an attack vector.

    Frankly, there are a lot easier ways to bring an ASP.NET site down.

    But I am still working on a set of plugins for 'locking-down' the system even further.

    1) Request Limiting plugin. Preventing too many requests per minute per IP address is the only practical way to limit DOS attacks.

    2) Profiles can be implemented in less than 10 loc with the system, and I will probably provide a plugin for 'limiting' options into preconfigured sets for the truly paranoid.

  • User profile image
    Nathanael Jones

    Apologies to everyone for the 12 hours of downtime.

    NameCheap support (who handles my registration) changed my host records without permission, in a uninformed and useless attempt to fix their broken e-mail forwarding.

    I fixed the issue immediately once I discovered it, and I've also fixed the e-mail forwarding issue by switching the MX records to a google apps account.

    Both http://imageresizing.net/ and support@imageresizing.net are working properly now.

    And thanks to Greg Duncan for a fantastic article!

  • User profile image
    Nathanael Jones

    FYI, the correct link to the license is http://imageresizing.net/licenses/freedom

  • User profile image
    David Linde

    We use one of the older versions of the image resizer in our production systems. We will be upgrading soon.

    The image resizer is is awesome, it just works! and its rock solid.

  • User profile image
    Adam Seraiah

    From a business perspecitive, this tool is an excellent means to handle image resizing on web sites built for small business owners. I do a lot of online product catalogs with many types of pics of varying size and quality. Trying to teach a client how to resize or crop their product images to make them look professional is difficult at best. With an image resizer like this one, I can standardize the look of the catalog pictures without expecting much effort or knowledge from the client. Large images with high resolution can be handled easily. Probably the most useful feature of this tool is its ability to remove the requirement for two image sizes for the same image. Think of all the web sites that require both thumbnails and a large close up pic for customer review and scrutiny. With this image resizer, you can get both on a single image. Now that is worth a ton of money.

  • User profile image
    gduncan411

    @Nathanael Jones:License link fixed... Thanks  Smiley

  • User profile image
    nathanaeljo​nes

    I just posted an article on how to use jCrop and 11 lines of javascript to build a AJAX cropping and resizing solution.

     

    Follow the link to download the sample project. You can view the live demo here.

    It's pretty neat, check it out Smiley

  • User profile image
    KombiServisi

    awesome!
    I've played a little. Looks great. and i already used on my last project's backend. <a href"http://www.mavikombi.com">Mavi Kombi Servisi</a>

Add Your 2 Cents