PNG files used for UI can be compressed more

NEW
Unassigned

Status

()

Firefox for Android
Theme and Visual Design
7 months ago
7 months ago

People

(Reporter: abovens, Unassigned)

Tracking

(Blocks: 1 bug)

55 Branch
All
Android
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

7 months ago
The PNG files inside the Firefox for Android APK can have stronger lossless compression applied than is currently the case.

I unpacked the APK and ran all contained PNG files through ImageOptim (Extreme setting): I managed to shave off 271 KB from the total size of 1,3MB (average of 26% per file). It remains to be seen how big the impact is once the APK is repacked again, but as every byte counts on slow connections, it would be good to look into this.
Hey Tim, this looks worthwhile. Could you assign someone?
Flags: needinfo?(timdream)
Thanks snorp.

Beside one-off compression work for the PNGs in the tree, I would love to figure out whether or not we can put something in task cluster to guard it. I was told there aren't anything yet in the tree.

:catlee, :RyanVM say you have some previous experience with this; I am on your timezone this week so I would love to talk to you on that.

For the test itself it probably doesn't make sense to actually compress the files; I am thinking about creating a while list and check the size of the PNG files against it.
Flags: needinfo?(timdream) → needinfo?(catlee)

Comment 3

7 months ago
See also bug 1234008.
Flags: needinfo?(catlee)
Blocks: 1363489
I spin-off test/lint work to bug 1363489. Let's use this bug to complete an one-off PNG compression related to Fennec.
Previously bug 1150973, bug 1150974, bug 1193580

Comment 6

7 months ago
(In reply to Andreas Bovens from comment #0)
> The PNG files inside the Firefox for Android APK can have stronger lossless
> compression applied than is currently the case.
> 
> I unpacked the APK and ran all contained PNG files through ImageOptim
> (Extreme setting): I managed to shave off 271 KB from the total size of
> 1,3MB (average of 26% per file). It remains to be seen how big the impact is
> once the APK is repacked again, but as every byte counts on slow
> connections, it would be good to look into this.

Do you know how well ImageOptim does compared to zopflipng?
Flags: needinfo?(abovens)
(Reporter)

Comment 7

7 months ago
> Do you know how well ImageOptim does compared to zopflipng?

ImageOptim includes Zopfli as one of its compression options.
Flags: needinfo?(abovens)
You need to log in before you can comment on or make changes to this bug.