Closed Bug 1393225 Opened 7 years ago Closed 7 years ago

Losslessly compress photon PNG assets

Categories

(Firefox for Android Graveyard :: General, enhancement)

All
Android
enhancement
Not set
normal

Tracking

(firefox57 fixed)

RESOLVED FIXED
Firefox 57
Tracking Status
firefox57 --- fixed

People

(Reporter: mcomella, Assigned: mcomella)

References

Details

Attachments

(1 file)

We added a lot of new assets for photon and we have not optimized them yet. Most of these assets can be reduced by 40%+ in size.

See bug 1150974 for precedent. fwiw, in the past, I've used ImageOptim on macOS and something else on linux.
See bug 1150973 for doing this automatically in the future.
Blocks: fatfennec
See Also: → 1150973
I used ImageOptim and drag-and-dropped all drawable* folders.

According to ImageOptim: "Saved 139 KB out of 303 KB. 45.4% per file on average
(up to 68.3%)."

Review commit: https://reviewboard.mozilla.org/r/171840/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/171840/
Attachment #8900471 - Flags: review?(cnevinchen)
Nevin: FYI that this is something we should try to do regularly, to keep the APK size down.
Comment on attachment 8900471 [details]
Bug 1393225: Losslessly compress png assets in photon/ dir.

https://reviewboard.mozilla.org/r/171840/#review177388
Attachment #8900471 - Flags: review?(cnevinchen) → review+
Pushed by michael.l.comella@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/7e3cd339e05d
Losslessly compress png assets in photon/ dir. r=nechen
(In reply to Michael Comella (:mcomella) from comment #3)
> Nevin: FYI that this is something we should try to do regularly, to keep the
> APK size down.

I think it's a built-in step in the Android Gradle plugin, but that doesn't mean we should ignore the resource costs.  Thanks for thinking of this, Mike!
https://hg.mozilla.org/mozilla-central/rev/7e3cd339e05d
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 57
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: