Closed
Bug 1150974
Opened 10 years ago
Closed 10 years ago
Losslessly compress all png assets
Categories
(Firefox for Android Graveyard :: General, defect)
Tracking
(firefox40 fixed)
RESOLVED
FIXED
Firefox 40
| Tracking | Status | |
|---|---|---|
| firefox40 | --- | fixed |
People
(Reporter: mcomella, Assigned: mcomella)
References
Details
Attachments
(1 file, 1 obsolete file)
I filed bug 1150973 to do this automatically from now on, but here's for a one-off push.
| Assignee | ||
Comment 1•10 years ago
|
||
/r/6611 - Bug 1150974 - Run `trimage` on all png assets in mobile/. r=rnewman
Pull down this commit:
hg pull -r a9472dff13aeac08a792bac4e69f8e191b09bae4 https://reviewboard-hg.mozilla.org/gecko/
Attachment #8588069 -
Flags: review?(rnewman)
Updated•10 years ago
|
| Assignee | ||
Updated•10 years ago
|
Summary: Compress all png assets → Losslessly compress all png assets
| Assignee | ||
Comment 2•10 years ago
|
||
Reviewboard seems to have eaten my extended commit message so if it makes it easier, here's the command I ran in zsh:
for i in `find mobile -name "*.png" | sed "s/\(.*\)\/.*\.png/\1/" | sort | uniq`; do trimage -d ${i}; done
Comment 3•10 years ago
|
||
Comment on attachment 8588069 [details]
MozReview Request: bz://1150974/mcomella
Assuming that they're not lying when they say 'lossless':
* Visually verify a build. Make sure that this doesn't do something bad like shifting color spaces or palettes.
* Verify that it doesn't make a change if the resulting images are larger than the input (which can happen!).
rs=me!
Attachment #8588069 -
Flags: review?(rnewman) → review+
| Assignee | ||
Comment 4•10 years ago
|
||
(In reply to Richard Newman [:rnewman] from comment #3)
> * Visually verify a build. Make sure that this doesn't do something bad like
> shifting color spaces or palettes.
I haven't seen any issues with this in my local build, nor in the past (and neither has Anthony! :).
> * Verify that it doesn't make a change if the resulting images are larger
> than the input (which can happen!).
Without taking the time to write a script or digging into the source, I'm not quite sure how to verify that none of the images grow in size. I listed the files before and after the patch with their file sizes and of the tens or so that I looked at, the size was reduced. I verified the final APK has dropped in size and I've previously noticed that re-running the program on the same image will cause no differences under `hg diff`.
| Assignee | ||
Comment 5•10 years ago
|
||
Comment 6•10 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
status-firefox40:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 40
| Assignee | ||
Comment 7•10 years ago
|
||
Attachment #8588069 -
Attachment is obsolete: true
Attachment #8619965 -
Flags: review+
| Assignee | ||
Comment 8•10 years ago
|
||
Updated•5 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•