printdotio / pio.js

An embeddable widget that enables users to quickly and easily monetize a webpage by enabling photo-product sales of its images.
4 stars 0 forks source link

Deliver natural/real-world photos as JPEG instead of PNG #79

Open ocram opened 9 years ago

ocram commented 9 years ago

Apart from the sprites, or graphics that have transparency, you deliver most graphics as PNG.

However, all natural or real-world photos should be delivered as JPEG instead, unless there is any special reason why you chose PNG.

Take the following graphic, for example, which is loaded for the main page of your widget: https://az412349.vo.msecnd.net/temp/117-697d-Prints_5x7_Stacks&Loose_296x307.png

As a PNG file, this has 210KB. If you compress it as JPEG with 95% quality (which is more than enough), it has only 45KB. If you do this for the other images as well, you have saved a lot of bandwith and much faster page loads.

What do you think?