Sam Davyson

WEBLOG

Hotlinking Picasa Web Albums Images

12/09/06 - 16.42

Picasa Web Albums seems to be smart at preventing image hotlinking. They have this embed feature that provides a link back to Picasa Web Albums and that works fine. But if you just try and take the image URL and embed it I find it breaks pretty soon.

For instance here is an image embedded using the Picasa Web Albums code that is available from the left hand bar in Picasa Web Albums:

The above code snippet straight from Picasa Web Albums uses this URL for the image: http://lh6.google.com/samdavyson/ROm95iJ2ABI/AAAAAAAAAFM
/ZpTxZPsUuIA/flower.jpg?imgmax=288. If you just use this URL and not the link back to Picasa it still seems to work. Here is one just using the URL:

But when you remove the thing limiting the image’s size (?imgmax=288) it breaks.

As you don’t see the image above it has clearly broken. The clever bastards. So lets see if it will work with another value of imagemax. So lets try 576 (2 x 288):

No. That doesn’t work either. So at the moment you can only hotlink in the 288 size. I hope Flickr doesn’t start using similar technology soon.

September 12th, 2006 - 4.42 PM | 7 Comments »

7 Comments on “Hotlinking Picasa Web Albums Images”

  1. 1 benizi said at 10:13 pm on November 1st, 2006:

    Kind of fun… if you disable sending the Referer header, the hotlinking works for all the sizes. In Firefox, set the preference network.http.sendRefererHeader to 0. I’m looking at your page right now, and it’s showing the 1280×1022 size just fine.

    I can’t really recommend this in general, since I assume some sites use positive matching (i.e. allow hotlinking if HTTP-Referer matches) rather than negative (disallow hotlinking if HTTP-Referer doesn’t match). But, it’s interesting.

    (Here’s a good reason right here… this comment form uses Referer checking. I can’t submit without a Referer header.)

  2. 2 antonio said at 12:57 pm on June 30th, 2007:

    I am using Opera 9.21 with referrer sending activated, and I can see the imagemax=576 version just fine.

  3. 3 deizel. said at 4:35 pm on September 11th, 2007:

    yup, antonio is correct. you can now hotlink various sizes: 228 576 640 800 maybe more..

  4. 4 Chris said at 5:20 pm on November 19th, 2007:

    Allowable sizes for the thumbsize and imgmax query parameters are published by Google at: http://code.google.com/apis/picasaweb/reference.html

    800px max is the largest currently allowed for embedding images.

  5. 5 devon said at 3:42 pm on August 8th, 2009:

    i can see the large image just fine using safari 4.0.2 with all default settings.

  6. 6 unissenug said at 9:10 am on January 8th, 2011:

    travel arrangements for ironman zurich http://asclera.zdyt.info/asclera-treatment-in-ohio asclera treatment in ohio [url=http://armodafinil.zdyt.info/armodafinil-msds]armodafinil msds[/url]
    http://arrestin.zdyt.info/dental-medicine-arrestin dental medicine arrestin negative effects of rap music [url=http://arava.zdyt.info/arava-lavine-nude]arava lavine nude[/url]
    [url=http://aralen.zdyt.info]aralen[/url] modern sawyer movie http://atomoxetine.zdyt.info/narcolepsy-atomoxetine narcolepsy atomoxetine
    credit cards compare travel http://atasol.zdyt.info/atasol-forte-500 atasol forte 500 [url=http://arestin.zdyt.info/arestin-actisite]arestin actisite[/url]
    http://aptivus.zdyt.info/aptivus-approval aptivus approval free shared music downloads eminem [url=http://apidra.zdyt.info/opticlick-for-lantus-and-apidra]opticlick for lantus and apidra[/url]

  7. 7 Ganhar Dinheiro na Internet - Métodos para Ganhar Dinheiro - Dinheiro Fácil said at 3:45 pm on March 8th, 2011:

    Tudo bem apareço mais uma vez aqui neste blog amigo, para retribuir a visita dada…….
    Sou o Nuno,gosto muito de jogos , dedico muito do meu horário a trabalhar o meu projecto online costumo também fazer legendas para vários fóruns,se calhar assistiram alguma série com legendas minhas!
    E por hoje chega, pois trabalho por turnos e e vou dormir umas horas.
    Fiquem bem………….


Leave a Reply

Hotlinking Picasa Web Albums Images

21/08/06 - 15.07

Google’s Picasa Web Albums is a simple tool to get your photos on the internet for sharing with friends and family. It is a bit of an antisocial Flickr at the moment as there is no central portal to search everyones photos or a place where various categories of photos are aggregated. If you want to get an occassional screenshot or image online then it might be a tool that you’d consider using.

Here is how to hotlink to Picasa Web images:

1. Go to your Picasa Web Album.

2. Right click on the image, and choose view image.

3. Delete the ?imgmax=144 (or some other number).

And that is it. The URL you have will work for posting your image on blogs, forums, or websites. Here for instance is the flower picture from the example above (source of image Mel & John Kots):

As a proof of concept all the images in this blog post are hosted on Picasa Web Albums. View the whole lot in my Flowers album. Alternatives of course include using Flickr, or a service like AllYouCanUpload.com, but I like the simplicity of the interface on Picasa Web even if the hotlinking process is a little more involved.

August 21st, 2006 - 3.07 PM |