GoLive CS2 help with images

Discussion in 'Web Design and Development' started by monta17, Jan 24, 2010.

  1. monta17 macrumors member

    Joined:
    May 7, 2009
    Location:
    Michigan
    #1
    How do I make images download automatically when you click on them on the webpage?
    Thanks!
     
  2. angelwatt Moderator emeritus

    angelwatt

    Joined:
    Aug 16, 2005
    Location:
    USA
    #2
    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.
     
  3. monta17 thread starter macrumors member

    Joined:
    May 7, 2009
    Location:
    Michigan
    #3
    Thanks,
    But how do you zip and image?
    Are you referring to a zip compression (from a PC)?
     
  4. angelwatt Moderator emeritus

    angelwatt

    Joined:
    Aug 16, 2005
    Location:
    USA
    #4
    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.
     
  5. nomade macrumors member

    nomade

    Joined:
    Dec 2, 2006
    #5
    Make a link to an empty page with that code in the header

    <?php
    header('Content-type: application/jpg');
    header('Content-Disposition: attachment; filename="your_image.jpg"');
    readfile('your_image.jpg');
    ?>
    make sure your image is on the server with the correct path
     

Share This Page