We're working on a brand new Dropbox Wiki with better features and ease of access! Find out more. |
Dropbox Gallery Download
From Dropbox Wiki
Contents |
BASH Version
(works on Linux, MacOS X, and a Cygwin bash on Windows)
A friend once emailed me a link to his public photo gallery, and I found it annoying that there was no easy way to bulk-download all the photos, so I wrote this small bash script.
- Download it from http://dl.dropbox.com/u/340607/download_dropbox_gallery.sh
- Make it executable (chmod +x download_dropbox_gallery.sh)
- Copy it to somewhere in your $PATH (or in the instructions below, just type the full path to download_dropbox_gallery.sh instead)
- Call it (from the command line / terminal) with the URL of the gallery and a (pre-existing) destination directory e.g.
download_dropbox_gallery.sh "http://www.dropbox.com/gallery/3858123/1/XXXXX?h=74bc436" my_photos
- I couldn't run the script with Cygwin under Windows, and found that wget fails while checking the SSL certificate. If you face the same problem (script will just tell you "Couldn't download the gallery index page"), just add a parameter to each wget call in the script:
"$WGET" --no-check-certificate ...
- If you want you can also choose to download the photos in a different size (choose from thumbnail, large, extralarge or original - original is the default) with an optional 3rd argument e.g.
download_dropbox_gallery.sh "http://www.dropbox.com/gallery/3858123/1/XXXXX?h=74bc436" my_large_photos large
- It error-checks the arguments you give it, and then downloads all the photos from the gallery into the directory you gave it, printing out a progress display as it runs.
Bugfix 2010-07-10 - I fixed the quoting so it still works if the gallery URL or destination directory contain spaces
Bugfix 2011-10-27 - Updated to cope with modified URL encoding used by Dropbox galleries
Bugfix 2011-12-01 - Updated to work correctly on MacOS X
Bugfix 2012-01-24 - Tell the user if we detect any sub-galleries
PHP Version
Above bash script rewritten to PHP.
- Download it from http://dl.dropbox.com/u/14267359/scripts/download_dropbox_gallery.php
- Call it from command line with the URL of the gallery and a (pre-existing) destination directory
e.g. php download_dropbox_gallery.php "http://www.dropbox.com/gallery/3858123/1/XXXXX?h=74bc436" photos
If you want you can also choose to download the photos in a different size (choose from thumbnail, large, extralarge or original)
e.g. php download_dropbox_gallery.php "http://www.dropbox.com/gallery/3858123/1/XXXXX?h=74bc436" photos large
Improvements to original version:
- downloading of image is skipped if destination directory already contains the image
Perl Version
Above PHP script rewritten in Perl (implemented using LWP::Simple).
- Download it from http://dl.dropbox.com/u/49991/download_dropbox_gallery.pl
- Call it from command line with the URL of the gallery and a (pre-existing) destination directory
e.g. perl download_dropbox_gallery.pl "http://www.dropbox.com/gallery/3858123/1/XXXXX?h=74bc436" .
If you want you can also choose to download the photos in a different size (choose from thumbnail, large, extralarge or original)
e.g. php download_dropbox_gallery.php "http://www.dropbox.com/gallery/3858123/1/XXXXX?h=74bc436" . large
Improvements to PHP version:
- regular expressions adapted to support both single and double quotes (to match 'original' tags in the Dropbox gallery page)
Windows Application
Current version: 1.4.1 (last updated 22 November 2012)
Tested OSes: Windows XP and 7
Theoretically Supported OSes: Windows XP, Vista, 7 and 8
Dependencies: .NET Framework 2.0+
A Windows application to download Dropbox galleries, written by Joshua White.
- Download the latest version of Dropbox Gallery Downloader from http://dl.dropbox.com/u/23174769/Software/Dropbox%20Gallery%20Downloader.exe
- Run program and enter the URL of the gallery in the "Web Address" box.
- Click on the "Gallery Folder" box to select a download destination directory (if you do not select a directory, then the gallery will be downloaded to the folder containing the application).
- Select image size - thumbnail, large, extra large or original - from the options (default is original).
- Choose optional settings: file overwrite and subgallery download
- Click "Download". The main text box will show the progress of the download.
The complete changelog is available from here.
v1.4.0 Updates (17 November 2012):
- Added ability to handle alternate gallery style (labels subgalleries as albums)
v1.4.1 Updates (22 November 2012):
- Minor bugfixes
Current known bug: If you have the situation where your gallery folder only contains subfolders and non-image files, the non-image files will fail. The ability to deal with this scenario will hopefully be added in later versions.
Please send all feedback, questions, suggestions and comments to the developer: [email protected]
Note: Google Chrome mistakenly identifies this as malicious. This is incorrect and Google seems to be identifying any unsigned or unknown EXEs as malicious.
