Closed Bug 377554 Opened 17 years ago Closed 17 years ago

Reduce download size by compressing PNG images

Categories

(Calendar :: General, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: ssitter, Assigned: ssitter)

Details

Attachments

(1 file, 1 obsolete file)

Reduce download size by compressing PNG images

A quick test by myself showed that the win32 Lightning xpi download size can be reduced by almost 50 kilobyte by re-compressing the PNG images using a PNG compression program like pngcrush or OptiPNG.

According to lilmatt this was already done back in 2004 for the images. The savings I measured are mostly caused by compressing the PNG images that were added for the prototype event dialog.
The following files have been compressed using OptiPNG 0.5.5 with option -o7:

    mozilla/calendar/prototypes/themes/pinstripe/*.png
    mozilla/calendar/prototypes/themes/winstripe/*.png
    mozilla/calendar/base/themes/common/*.png

lightning.xpi size before compression 1.085.440 Bytes
lightning.xpi size after compression  1.013.945 Bytes
Attachment #261598 - Flags: first-review?(michael.buettner)
Attachment #261598 - Flags: first-review?(michael.buettner) → review?(michael.buettner)
Comment on attachment 261598 [details]
zip archive with re-compressed PNG files

r=mickey
Attachment #261598 - Flags: review?(michael.buettner) → review+
Whiteboard: [checkin needed after 0.5]
Updated images checked in.
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Whiteboard: [checkin needed after 0.5]
Target Milestone: --- → 0.7
Using a combination of brute force methods via PNGGauntlet and PNGOut here's a .zip archive that offers an additional 8% decrease in file size.
Attachment #271020 - Flags: review?
Attachment #271020 - Flags: review? → review?(michael.buettner)
More stats:

Stefan's uncompressed archive size: 288,120 bytes
My uncompressed archive size: 265,074 bytes

Saving 23,046 bytes, or 8%.
Mickey, you are the reviewer. :) Do we want further size reduction of PNG images?
Version: Trunk → unspecified
Comment on attachment 271020 [details]
zip archive with (even-better) compressed PNG files

I went through the images and took some random samples. Since I couldn't find any difference in image quality -> r=mickey.

It's probably a good idea to document which tool with which parameters has been used to compress the images, since they will most probably change in the future.
Attachment #271020 - Flags: review?(michael.buettner) → review+
Christian, which of these compressed images do you want to take? I'd just take the smaller one, but the final choice is up to you.
Hey people,

I just used PNGGauntlet available at 

http://brh.numbera.com/software/pnggauntlet/

And overwrote the old PNGOut file provided with the latest version. Then I enabled the "Brute Force" option in PNGGauntlet and out came the "slightly better" compressed files.

Hope this helps.
Cc'ing Christian to answer comment#8.
don't think this can make 0.7, maybe 0.8 instead.
This bug is already resolved as fixed for 0.7. If there is more work to be done this bug should be reopened or a new bug should be filed.
Comment on attachment 271020 [details]
zip archive with (even-better) compressed PNG files

Marking obsolete. The bug is already closed and these  images got never checked in.
Attachment #271020 - Attachment is obsolete: true
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: