What tools can be used to download all images in a webpage? [closed]

I would like to download all images in a web page. The tool should be smart enough to examine the css and javascript files in the page source to look for the images.

Ideally, it should also replicate the folder hierarchy, saving the images in the correct folder. For example, the web page may have some images for menu items stored in images/menu/ and for background images it may be stored in images/bg/.

Is there such a tool that you know of? (preferably in Windows but Linux is still ok)

Many thanks to you all.


Solution 1:

wGet for windows can recursively download a site. It should keep your folder structure. You may need to delete the html files after getting everything, but IMO, it's very easy to use.

http://gnuwin32.sourceforge.net/packages/wget.htm

use the "-r" flag to recursively download a site. e.g. wget -r http://example.com

Here's a brief tutorial on site downloading.

http://linuxreviews.org/quicktips/wget/

Solution 2:

If you are using Firefox, then the following add-ons will help:

Save Images

saves the images from the current tab page, from the cache, to a specified location, with either the images original file name or a file name that you specify. The size, dimensions and types of images saved may be chosen, with options if the file size is unknown or if duplicate files are found. Images may be either saved from the current tab, left or right of the current tab or from all tabs.

DownThemAll!

This is a well-known add-on, possibly used together with DownThemAll! AntiContainer.

AntiContainer is an extension and framework to DownThemAll! which allows the user to download resources that are normally hidden behind container pages.

For instance almost all so called "one-click" image hosters, such as imagevenue, use such container pages. AntiContainer enables DownThemAll! to download the actual images there instead of just the page.

Solution 3:

Another option would be to use a web spider such as WebReaper with a filter to only download .png, .jpg, .gif, etc. However, some sites block web spiders, so be aware.