Related example macro: Demo-ImageDownload
This command is similar to SAVEITEM, which is the default command for image downloading. However, unlike SAVEITEM, it does not access the image via the HTML of the website but directly by simulating the Internet Explorer "Save Picture As" command. This can be an advantage on complex websites or websites where images are constructed "on the fly".
To use SAVEPICTUREAS, you need to manually edit a recorded macro. Click on the element you wish to download and iMacros will produce a command like
TAG POS=1 TYPE=IMG ATTR=HREF:http://www.iopus.com/
This would simulate a mouse click on the link. Since this is not what we want, we need to edit the macro and add CONTENT=EVENT:SAVETARGETAS to the recorded TAG command. You will then have
TAG POS=1 TYPE=IMG ATTR=HREF:http://www.iopus.com/ CONTENT=EVENT:SAVEPICTUREAS
The files downloaded in this way are copied to the iMacros download directory by default. You can use the ONDOWNLOAD command to specify the name and location for the downloaded image.
Page URL http://www.iopus.com/imacros/help/savepicture.htm