hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Dedicated Server : mod_deflate with JPG, GIF, ...
Reply

Forum Jump

mod_deflate with JPG, GIF, ...

Reply Post New Thread In Dedicated Server Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 12-04-2004, 07:21 PM
Doble Doble is offline
Web Hosting Guru
 
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!



Sponsored Links
  #2  
Old 12-04-2004, 07:27 PM
illogix illogix is offline
Web Hosting Master
 
Join Date: May 2001
Location: Montreal, Quebec
Posts: 589
JPEGs are already compressed. There is no point in compressing them.

  #3  
Old 12-04-2004, 07:51 PM
Doble Doble is offline
Web Hosting Guru
 
Join Date: Aug 2004
Posts: 326
and GIF? Png? And BMP?

And .swf?




Thanks!

Sponsored Links
  #4  
Old 12-04-2004, 10:59 PM
Doble Doble is offline
Web Hosting Guru
 
Join Date: Aug 2004
Posts: 326
please up, is urgente


thanks for your pacience

  #5  
Old 12-04-2004, 11:19 PM
luki luki is offline
Web Hosting Master
 
Join Date: Apr 2003
Location: Los Angeles, CA
Posts: 773
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  
Old 12-05-2004, 03:42 PM
Guspaz Guspaz is offline
Web Hosting Master
 
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  
Old 12-05-2004, 04:48 PM
dkitchen dkitchen is offline
Managed Hosting Expert
 
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  
Old 12-05-2004, 05:06 PM
Guspaz Guspaz is offline
Web Hosting Master
 
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.

Reply

Related posts from TheWhir.com
Title Type Date Posted
Report Identifies Suspicious Bot that Could Help Explain Mt. Gox Bitcoin Scandal Web Hosting News 2014-05-27 09:39:51


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:
WHT Membership
WHT Membership



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?