Copied to clipboard

Flag this post as spam?

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


  • organic 108 posts 157 karma points
    Sep 01, 2011 @ 22:21
  • organic 108 posts 157 karma points
    Sep 02, 2011 @ 22:02
    organic
    0

    Getting xslt error when trying to 'Edit' my post, so here's my edit:

    I am not using 'ImageBaseDir' anywhere, either.  So that shouldn't be the problem.

  • Douglas Robar 3570 posts 4711 karma points MVP ∞ admin c-trib
    Sep 05, 2011 @ 12:31
    Douglas Robar
    0

    It's always difficult cascading querystring parameters and handlers to be sure they go to the correct item. Though that isn't your problem here it is worth noting and might help others in the future...

    This will work:

    imagegen.ashx?width=100&image=http://example.com/getimage.ashx?id=663

    The important thing to note is that the &image= is the last querystring parameter and that there can only be one parameter to the second handlers (getimage.ashx in this example).

    As an example of how tricky it gets, 

    imagegen.ashx?width=100&image=http://example.com/getimage.ashx?id=663&height=500

    will apply the &height=500 to imagegen.ashx, not getimage.ashx. That's just the way it works and isn't specific to ImageGen. 

    Now to the question of port numbers - you'll need ImageGen Professional for this to work as you're attempting it. While in development on localhost you always have the Professional features enabled and you can just include the domain and port as you've shown above. On a live site you probably aren't going to be using port numbers and so won't need to include either the domain or port, and so the free version should be fine. In both cases you don't have to purchase a key unless you want the benefits ImageGen Professional provides.
    cheers,
    doug. 
  • organic 108 posts 157 karma points
    Sep 05, 2011 @ 18:38
    organic
    0

    Thank you for explaining some details, but I still don't see my solution because, like you said, it doesn't seem that I need Pro features. Correct that I'm not using port #'s in test or production, only local development.  I gave localhost:1232 examples, but this img src is actually not working in a test environment http://dev.[domain].com:

    src="/ImageGen.ashx?width=300&image=/ImageServer.ashx?imageID=278"

    And I have double checked that both handler files are in the root of my site.

    Thanks again, Doug

  • Douglas Robar 3570 posts 4711 karma points MVP ∞ admin c-trib
    Sep 06, 2011 @ 11:07
    Douglas Robar
    0

    Thanks for the clarification. 

    You will need ImageGen Professional for this to work. I should have mentioned it at the start... ImageGen assumes the &image= parameter can be mapped to a physical file in the website. Thus, ImageGen is looking for the "ImageServer.ashx?imageID=278" as a filename and isn't going to find it, which is why you get the error.

    What you really want is for ImageGen to treat the &image= parameter as a (remote) website that will return an image from a specific URL. This feature is only available in ImageGen Professional and you must specify the full url to the resource including the http:// portion even though it resides on the same server.

    cheers,
    doug. 

Please Sign in or register to post replies

Write your reply to:

Draft