Copied to clipboard

Flag this post as spam?

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


  • Shane Boyed 1 post 21 karma points
    Jul 21, 2014 @ 01:38
    Shane Boyed
    0

    Some Remote Images not disaplaying

    Hi There

    We have a site that is pulling image from http://c0481729.cdn2.cloudfiles.rackspacecloud.com

    Most images display. Some don't. Can't working out why. We need urgent help on this one.

    This link works:

    <img src="/Imagegen.ashx?image=http://c0481729.cdn2.cloudfiles.rackspacecloud.com/p-B1064FF0-F257-8BDF-07B93A3186150C2A-2544003.jpg&amp;class=listing">

    The link doesn't work:

    <img src="/Imagegen.ashx?image=http://c0481729.cdn2.cloudfiles.rackspacecloud.com/p-F4DB152B-91C4-3D8D-DB18D13276F222A7-2544003.jpg&amp;class=listing">

    The images are on the remote server.

     

     

     

  • Douglas Robar 3570 posts 4711 karma points MVP ∞ admin c-trib
    Jul 21, 2014 @ 15:08
    Douglas Robar
    0

    Hi, Shane,

    Thanks for the note about the problem you're having. It seems as though it should all work properly but let's see if we can double-check some things and figure out what the problem is.

    If of all, you need ImageGen Professional active, and you'll want to use the latest version of ImageGen (v2.9.1). If you use the ?version querystring parameter you should see something like this with the http://example.com/imagegen.ashx?version url:

    ImageGen Professional version 2.9.1.36515
    Professional features are available for localhost
    Professional features are available for *.local
    Professional features are available for example.com
    Professional features are available for sample.com

    If you only have ImageGen Basic displayed then you don't have a key for the domain you're using ImageGen from.

    Is there any chance that you have multiple servers, possibly from different domains, that are making the requests with ImageGen? Each server would need its own entries in the web.config and imagegen.config files. Perhaps one server doesn't have the remote domain whitelisted in the imagegen.config file? Or perhaps there is no "listing" class in one of the imagegen.config file?

    Is there any chance you have a load-balanced environment? That can cause some problems depending on how you've set up file replication between web servers. There's a helpful discussion at http://our.umbraco.org/projects/website-utilities/imagegen/imagegen-bugs/50490-imagegen-large-indexxml-file-size,-high-CPU-and-memory-usage that would be good reading if you have a load-balanced environment.

    Lastly, I notice that sometimes the response time from rackspacecloud.com is very slow. That might be a function of my location compared to the cdn source but if a remote request times out ImageGen won't be able to display the resized remote image. The time taken to resolve the DNS name and the full period it takes for the cdn to return all the data in the source image to imagegen.ashx are all part of the overall time. Similarly, your webserver might have a timeout period that aborts a request to imagegen.ashx if it is taking too long?

    Hope this helps. Let me know what you find out.

    cheers,
    doug.

Please Sign in or register to post replies

Write your reply to:

Draft