Copied to clipboard

Flag this post as spam?

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


  • Kim Søjborg Pedersen 71 posts 275 karma points
    Jun 24, 2015 @ 12:12
    Kim Søjborg Pedersen
    0

    Using imagegen with google drive

    Can I use imagegen to get images from an external site like google drive?

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    Jun 24, 2015 @ 12:23
    Jan Skovgaard
    0

    Hi Kim

    I'm not quite sure what you have in mind?

    You should be able to use imagegen for external images if you reference them from other sources - I have done that in a couple of projects - Is that what you're asking? :)

    EDIT: You just call imagegen like you would with an image from Umbraco and replace the umbraco path with your external path...does that make sense?

    /Jan

  • Kim Søjborg Pedersen 71 posts 275 karma points
    Jun 24, 2015 @ 12:55
    Kim Søjborg Pedersen
    0

    Hej Jan, my goal is to let users upload images to google drive an then use them on a website if they named the file in a correct format.

    Btu I just found out about the

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    Jun 24, 2015 @ 17:24
    Jan Skovgaard
    0

    Hi Kim

    Hmm....I might be wrong then...Perhaps you need to allow for external domains to be used somewhere in some configuration in the web.config or elsewhere. Don't know if you perhaps need an xml cross-domain-policy thingy in the root of your sites file-system?

    I have used images directly from the disk, which have not been uploaded into Umbraco but your scenario is of course different since you reference a 3rd party domain...silly me :)

    /Jan

  • Kim Søjborg Pedersen 71 posts 275 karma points
    Jun 24, 2015 @ 17:48
    Kim Søjborg Pedersen
    0

    Hi Jan, and thanks, imagegen.config has a whitelist section where I have inserted the domain

    <RemoteDomainWhiteList>
     <Domain>www.googledrive.com</Domain>  
    </RemoteDomainWhiteList>
    

    but still I get a error message when pointing imagegen to the the image http://www.googledrive.com/host/0B5V0PrVGnNpffkRQaHVET3B0V0NoT3AwQlQ1WnA1aVM1R05pOXdsOVNWNlV1RkJ1d1dod3M/20130906_164807.jpg

    Maybe its a licens issue

  • Douglas Robar 3570 posts 4711 karma points MVP ∞ admin c-trib
    Jun 25, 2015 @ 09:44
    Douglas Robar
    1

    Hi, Kim,

    What you have should be fine, but you will need ImageGen Professional to use remote images. You can check if you're running in Basic (free) or Professional mode by issuing /imagegen.ashx?version.

    You will also have Pro features enabled when you're running on localhost or any *.local domain. For live domains you'd need to purchase a domain key.

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

    cheers,
    doug.

  • Kim Søjborg Pedersen 71 posts 275 karma points
    Jun 25, 2015 @ 10:20
    Kim Søjborg Pedersen
    0

    Hi Douglas, and thanks for your answer, the response is this ImageGen version 2.2.1.38932(professional features enabled for localhost) (I am running local with this hostheader local.ev.dk) but when I call a remote image like this https://www.google.dk/images/srpr/logo11w.png I still get the message "Only ImageGen Pro can display remote images"

    So how can I test this feature without buying a licens?

  • Douglas Robar 3570 posts 4711 karma points MVP ∞ admin c-trib
    Jun 25, 2015 @ 10:41
    Douglas Robar
    100

    If you can add a hostheader and dns (or local hosts file) entry so that your site also responds to something that ends with .local then you'll have the Professional features enabled and you can test the remote images feature. Or, if you can also run your site from localhost that would likewise put ImageGen into Professional mode for testing.

    cheers,
    doug.

Please Sign in or register to post replies

Write your reply to:

Draft