Saturday, August 1, 2009

Downloading albums from Kodak Gallery

Like many photo sharing services, Kodak Gallery holds your friends’ photos hostage, in a short-sighted attempt to make you buy things from them. Despite a misleading ad campaign, if your friend uses the service to share photos with you, they make it impossible for anyone but the person who originally uploaded them to download the original, full-resolution copies. (Aside: what is the point of that? If you uploaded them in the first place, you presumably have the files already.)

I don’t have a solution for this, but I cooked up a workaround that may be better than nothing: this script will automatically discover and download 640x480 copies of every photo in a Kodak shared album. This resolution is very far from ideal, but it is the best I could figure out how to hack out of their system (if anyone knows of a better way, please do let me know).

First, log in to Kodak, go to the shared album, and download the page that has thumbnails of every photo (just the plain HTML file will do). The script can’t do this automatically because it requires authentication.

Then run the script as so (you need PHP installed):

php kodak-steal.php saved-page.html

Hopefully this little trick helps someone else out there on the interwebs.

P.S.: Flickr and Picasa let you download the full-resolution files (or the highest resolution that the person has chosen to upload).

Edit: it’s worse than I knew.