Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Joey 20 posts 44 karma points
    Jan 13, 2012 @ 12:57
    Joey
    0

    ImageResizer.net and Umbraco 4.7.1

    I'm test driving imageResizer.net and trying to utilize the 404 plugin capabilities but umbraco is getting in the way. The code for imageresizer is definately installed correctly after visiting http://localhost//resizer.debug.ashx and works just fine on images that exist. the problem seems to be that umbraco is trying to intercept the call to an image if it is not found(404) and has a "?404=" in the querystring. imageresizer.net uses the querystring to figure out what to do and in this case what image to show if the requested image is not found. I've already set the umbracoReservedPaths to include "~/images/" in it to tell umbraco to leave any requests to images alone but it's requestModule keeps kicking in when an image is requested and not found.

    Example:

    http://localhost/images/noimage.jpg - IIS 7 returns 404 not found as expected

    http://localhost/images/noimage.jpg?404=default - umbraco spites out "Invalid URI: the format of the URI could not be determined" and breaks on line 89 of requestModule.cs

    Any suggestions to prevent umbraco's requestModule from kicking in in this scenario?

    Thanks!

  • Richard Soeteman 4049 posts 12922 karma points MVP 2x
    Jan 13, 2012 @ 14:25
    Richard Soeteman
    0

    Hi,

    Don't know the answer to your question. But have you checked out imagegen? This package is well known in the Umbraco community and is really awesome. Think it has some 404 settings as well. You might want to check it out.

    Cheers,

    Richard

Please Sign in or register to post replies

Write your reply to:

Draft