mozilla and firebird PNG images are large - 55 kb and 37 kB

RESOLVED WORKSFORME

Status

www.mozilla.org
General
RESOLVED WORKSFORME
14 years ago
5 years ago

People

(Reporter: Adam Hauner, Assigned: Dawn Endico)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(URL)

Attachments

(2 attachments)

(Reporter)

Description

14 years ago
Mozilla and firebird images on title plage are too large:
http://www.mozilla.org/frontpage/productIconMozilla.png - 55 kB
http://www.mozilla.org/frontpage/productIconFirebird.png - 37 kB

Try to convert it to GIF with reduced color palette - attached images have 14 kB
and 9 kB with no visible difference.
(Reporter)

Comment 1

14 years ago
Created attachment 132348 [details]
Mozilla - 128 colors GIF
(Reporter)

Comment 2

14 years ago
Created attachment 132349 [details]
Firebird - 128 colors GIF

Comment 3

14 years ago
The biggest problem with these images is that they were made in 
PhotoShop so they're not compressed as well as they could and they have 
iCC profiles, e.g.

File: productIconMozilla.png (56739 bytes)
  chunk IHDR at offset 0x0000c, length 13
    210 x 183 image, 24-bit RGB, interlaced
  chunk iCCP at offset 0x00025, length 2615
    profile name = Photoshop ICC profile, compression method = 0 
(deflate)
    compressed profile = 2592 bytes
  chunk gAMA at offset 0x00a68, length 4: 0.45454
  chunk cHRM at offset 0x00a78, length 32
    White x = 0.31269 y = 0.32899,  Red x = 0.63999 y = 0.32998
    Green x = 0.29998 y = 0.59999,  Blue x = 0.14999 y = 0.05999
  chunk IDAT at offset 0x00aa4, length 53995
    zlib:  deflated, 32K window, default compression
  chunk IEND at offset 0x0dd9b, length 0
No errors detected in productIconMozilla.png (50.8% compression).

pngcrush reduces the size by 19%.

It's quite true that paletted images are smaller but a paletted PNG is 
smaller than a GIF.

Aren't there still some patent issues with GIFs in some countries?

Making proper PNGs seems more productive.
(Reporter)

Comment 4

14 years ago
> It's quite true that paletted images are smaller but a paletted PNG is 
> smaller than a GIF.

Feel free to provide paletted PNG files.

> Aren't there still some patent issues with GIFs in some countries?

Patent issues are only for programs with GIF creating functionality, not for users.

Comment 5

14 years ago
> Feel free to provide paletted PNG files.

I'm not going to mangle an image without the author's permission so 
paletted PNGs are out for the moment. I can strip out the ICC profile 
and make it non-interlaced which gets ~31% size reduction.

The better solution is to generate smaller images from the beginning.

BTW, staying with PNGs means not having to edit the web pages which is 
good.

> Patent issues are only for programs with GIF creating functionality, 
> not for users.

The Mozilla Foundation is probably the creator of these images so patent 
issues do apply.
(Reporter)

Comment 6

14 years ago
Images shrinked by http://mozillacss.mozdev.org/
http://mozillacss.mozdev.org/frontpage/productIconFirebird.png
http://mozillacss.mozdev.org/frontpage/productIconMozilla.png

Comment 7

14 years ago
this bug is obsolete now
Status: NEW → RESOLVED
Last Resolved: 14 years ago
Resolution: --- → WORKSFORME
Product: mozilla.org → Websites
Component: www.mozilla.org → General
Product: Websites → www.mozilla.org
You need to log in before you can comment on or make changes to this bug.