Separate names with a comma.
Discussion in 'Web Design and Development' started by monta17, Jan 24, 2010.
How do I make images download automatically when you click on them on the webpage?
The easy way would be to zip the image. The harder way involves either using PHP to force download, or to use Apache .htaccess file to force it, but these take some effort to setup. You can probably track down some tutorials though.
But how do you zip and image?
Are you referring to a zip compression (from a PC)?
Macs have compression too. Just right-click on the image file and choose Compress, then upload that zip file and point a link to it.
Make a link to an empty page with that code in the header
header('Content-Disposition: attachment; filename="your_image.jpg"');
make sure your image is on the server with the correct path