Downloading Zenfolio Photos
A friend asked me if I could get some images off of Zenfolio for her. They are displayed as background images of div blocks and so you cannot simply right click and “Save As…”. Getting the link for the image is not hard but it’s buried deep in the HTML. Once you load the image, you’ll find it’s not very big but if you change the URL you can download the larger version. For example:
http://img-a.zenfolio.com/img/v4/p1010183352-3.jpg
becomes:
http://img-a.zenfolio.com/img/v4/p1010183352-4.jpg
I whipped up a little javascript to get the URL and load it.
javascript:window.location=/url\((.+?)\)/.exec(document.getElementById('ctl02_PhotoFlipper-view1-img').getAttribute('style'))[1].replace(/-[0-9]+\.jpg/,'-4.jpg')
It doesn’t work if you’ve used the navigation on the side of the page (seen when viewing a single image) to get to the picture you want to download. The id of the HTML element will have changed to something like
ctl02_PhotoFlipper-view3-img
and the javascript won’t find it. Save the above code as a link in your bookmark bar and use it whenever you want to download an image from Zenfolio. I am not responsible if you misuse this code.

Leave a Reply