Solved

Should server-side zlib compression be used for images?

Posted on 2011-05-05
2
453 Views
Last Modified: 2013-12-07
Most if not all modern browsers support zlib compression.  Content can be compressed on the server-size and uncompressed by the browser.

It saves quite a bit of bandwidth on text files, but what about images?  Should this feature be enabled or disabled for images?
0
Comment
Question by:hankknight
2 Comments
 
LVL 108

Assisted Solution

by:Ray Paseur
Ray Paseur earned 100 total points
Comment Utility
My sense is that it should be disabled, but I do not have any science to back that up.  However if you look at the compression ratios for JPG images and ZIP files made from the JPG images you will be able to find the science to support or refute my assertion.  If you want the best compression for images, it's my sense that JPG compressions will be better than ZLIB.
0
 
LVL 42

Accepted Solution

by:
David S. earned 400 total points
Comment Utility
The common formats used for images on the web (JPEG, PNG, GIF) are compressed formats, which is why they are used. Therefore, it's not recommended to have web servers serve them with an additional layer of compression.

I seem to remember reading somewhere that adding an extra layer of compression to a PNG can actually increase the number of bytes instead of decreasing it in some cases.

There is something you can do, however. You can make sure that your images are fully optimized. (Image editors don't do as good a job as one would hope.)
http://www.dynamicsitesolutions.com/blog/2010/2/png-optimization/
http://www.smushit.com/ysmush.it/
http://imageoptim.pornel.net/
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

I've been using this technique since Adobe CS2, and it should work with any version of Illustrator that includes the appearance panel. In this tutorial we'll create a button using the appearance panel in Adobe Illustrator, and then save it as a r…
Several part series to implement Internet Explorer 11 Enterprise Mode
Learn how to use the remote presentation tool in Prezi to allow you to harness the power of this cloud based presentation platform. You can show your presentation with a remote audience using this free tool.
It’s easy to embed any of your public Prezi presentations on your website or social network to share with others. Learn how simple it is in this tutorial.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now