Results 1 to 8 of 8
  1. #1
    Join Date
    Aug 2004
    Posts
    326

    mod_deflate with JPG, GIF, ...

    Hello!


    I have formed mod_deflate in my server of the following way:

    <Directory /home/*/htdocs>
    SetOutputFilter DEFLATE
    AddOutputFilterByType DEFLATE text/plain
    AddOutputFilterByType DEFLATE text/html
    AddOutputFilterByType DEFLATE text/css
    AddOutputFilterByType DEFLATE text/xml
    AddOutputFilterByType DEFLATE application/x-javascript
    </Directory>


    I believe that this what does is to compress the HTML, css and xml.


    * But what I want it is that it also compresses archives JPG, GIF, png... (images) that my Web shows.

    *Since I do this?






    Thanks!

  2. #2
    Join Date
    May 2001
    Location
    Montreal, Quebec
    Posts
    589
    JPEGs are already compressed. There is no point in compressing them.

  3. #3
    Join Date
    Aug 2004
    Posts
    326
    and GIF? Png? And BMP?

    And .swf?




    Thanks!

  4. #4
    Join Date
    Aug 2004
    Posts
    326
    please up, is urgente


    thanks for your pacience

  5. #5
    Join Date
    Apr 2003
    Location
    Los Angeles, CA
    Posts
    791
    GIFs and PNGs are also highly compressed so no need to compress them again. Not sure about SWF; you shouldn't be using BMPs on the web anyway...

    Just try zipping them and see how much you gain... probably not much.
    Pings <1 ms, Unlimited Transfer, Lowest Price: http://localhost/

  6. #6
    Join Date
    Sep 2004
    Posts
    1,007
    You should only be gzipping plaintext content. HTTP compression is not intended for anything else, as most other categories support their own compression (Such as images. Use JPG/GIF/PNG instead of BMP), or should be using ZIP or RAR.

  7. #7
    Join Date
    Jan 2004
    Location
    North Yorkshire, UK
    Posts
    4,163
    A BMP normally works out about 10x the size of a JPG, so go for either JPG/GIF.
    █ Dan Kitchen | Technical Director | Razorblue
    █ ddi: (+44) (0)1748 900 680 | e: dkitchen@razorblue.com
    █ UK Intensive Managed Hosting, Clusters and Colocation.
    █ HP Servers, Cisco/Juniper Powered BGP Network (AS15692).

  8. #8
    Join Date
    Sep 2004
    Posts
    1,007
    For extra savings, PNG usually compresses significantly better than GIF, though certain tools such as Adobe Photoshop have notoriously poor PNG compressors. I have found the best results (using photoshop) is to save the file as a GIF (Which lets you use Photoshop's dithering and palette selection tools) from Photoshop, and then use a tool such as gif2png to convert the GIF to a PNG file. There's no problem with a site using both GIF and PNG, so feel free to mix and match, using whatever format provides the best compression for the image in question.

    If you must save directly to PNG, you can probably shrink the PNG further by using pngcrush. pngcrush attempts to recompress the PNG file using more effective compression settings.

  9. Newsletters

    Subscribe Now & Get The WHT Quick Start Guide!

Related Posts from theWHIR.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •