Copied to clipboard

Flag this post as spam?

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


  • Lee 1130 posts 3088 karma points
    Mar 21, 2011 @ 16:08
    Lee
    0

    External Images?

    Hey Doug..

    Does imagegen work with external images? For example could I feed it a Flickr image URL or an image on another website?  I have tried to pass it an image from a different website in the hope it would resize but it doesn't return an image?

  • Douglas Robar 3570 posts 4711 karma points MVP ∞ admin c-trib
    Mar 21, 2011 @ 16:12
    Douglas Robar
    1

    Hi, Lee,

    Works great! But you'll need ImageGen Professional to use remote images. (remember that localhost and *.local domains always have Pro features enabled for testing) You'll also need to set up the remote domain white list in the ImageGen.config file to allow flickr to work. See the PDF docs for all the details.

    Just shout if you can't get it sorted out.

    cheers,
    doug.

  • Lee 1130 posts 3088 karma points
    Mar 21, 2011 @ 16:23
    Lee
    0

    Hey Doug - Its all good, I wasn't referencing the ashx properly :)  Will buy a pro license shortly, still developing everything.

    Thanks

  • Lee 1130 posts 3088 karma points
    Mar 21, 2011 @ 16:29
    Lee
    0

    Sorry doug I have just seen the whitelist section in config, can you set it to allow any external domain? Say with a wild card?

  • Douglas Robar 3570 posts 4711 karma points MVP ∞ admin c-trib
    Mar 21, 2011 @ 16:39
    Douglas Robar
    0

    No, as the documentation says, you need to be specific. 

    To quote from the ImageGen Reference Manual...

     

    For services such as Flickr that use multiple domains, you would list them all.


    farm1.static.flickr.com
    farm2.static.flickr.com
    farm3.static.flickr.com
    farm4.static.flickr.com
    farm5.static.flickr.com
    farm6.static.flickr.com

     

    cheers,
    doug.

  • Lee 1130 posts 3088 karma points
    Mar 21, 2011 @ 16:42
    Lee
    0

    Thanks... But that won't work, I was going to use it for resizing peoples avatars on a forum.  

    And I have no idea what the domains are likely to be, as people use so many different image hosting sites and of course their own websites.

  • Douglas Robar 3570 posts 4711 karma points MVP ∞ admin c-trib
    Mar 21, 2011 @ 16:45
    Douglas Robar
    0

    Ahh. You're out of luck in that case. But I'd use gravatar.com for that and they do the avatar resizing for you. That the way it is usually handled by people these days.

    Or, you could have them upload an image for use as their forum avatar if you'd rather. Then it would be local and part of their member profile. Then ImageGen could resize it for you without making a remote call for the image (better performance).

    cheers,
    doug.

Please Sign in or register to post replies

Write your reply to:

Draft