Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(37)

Issue 11905002: Add -o option to optimize png file size (Closed)

Created:
7 years, 11 months ago by oshima
Modified:
7 years, 11 months ago
Reviewers:
msw, Nico
CC:
chromium-reviews, Nico
Visibility:
Public.

Description

Add -o option to optimize png file size The optimize code is based on pngslim. A few steps are omitted, but it runs all other processes. I'll check if it worth fixing them (for example, advdef didn't make much difference) Using -o option requires new third party program: optpng, pngout and advdef. The script asks to install if they're not installed. So for, I've got ~30% reduction in ash/resources (it's probably because pngslim was never run on this directory), I'd expect less on other places where pngslim was run before. Print results BUG=150046 TEST=none NOTRY=true Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=177202

Patch Set 1 : #

Total comments: 4

Patch Set 2 : fix typo, added comments #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 70

Patch Set 5 : fix comments #

Patch Set 6 : #

Patch Set 7 : #

Total comments: 6

Patch Set 8 : fix comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+270 lines, -12 lines) Patch
M build/sanitize-png-files.sh View 1 2 3 4 5 6 7 5 chunks +270 lines, -12 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
oshima
7 years, 11 months ago (2013-01-15 16:52:54 UTC) #1
Nico
Cool! You're planning to run this on all of chrome's resources right? https://codereview.chromium.org/11905002/diff/3002/build/sanitize-png-files.sh File build/sanitize-png-files.sh ...
7 years, 11 months ago (2013-01-15 17:23:58 UTC) #2
Nico
…and from another tab: High-level: This is now looking like a real program. Is bash ...
7 years, 11 months ago (2013-01-15 17:24:18 UTC) #3
oshima
Yes, i'm going to run this on all files. https://codereview.chromium.org/11905002/diff/3002/build/sanitize-png-files.sh File build/sanitize-png-files.sh (right): https://codereview.chromium.org/11905002/diff/3002/build/sanitize-png-files.sh#newcode21 build/sanitize-png-files.sh:21: ...
7 years, 11 months ago (2013-01-15 18:31:19 UTC) #4
oshima
On 2013/01/15 17:24:18, Nico wrote: > …and from another tab: > > High-level: > > ...
7 years, 11 months ago (2013-01-15 18:51:43 UTC) #5
Nico
Hm, "a day" sounds fairly long. Do you know where most of the time is ...
7 years, 11 months ago (2013-01-15 19:53:27 UTC) #6
oshima
On 2013/01/15 19:53:27, Nico wrote: > Hm, "a day" sounds fairly long. Do you know ...
7 years, 11 months ago (2013-01-15 20:49:25 UTC) #7
Nico
Ok, lgtm. On Tue, Jan 15, 2013 at 12:49 PM, <oshima@chromium.org> wrote: > On 2013/01/15 ...
7 years, 11 months ago (2013-01-15 20:52:52 UTC) #8
msw
Sorry for all the nits. Also, I'm not a shell scripting guru, so I didn't ...
7 years, 11 months ago (2013-01-16 03:43:11 UTC) #9
oshima
I run pngout and optipng with default parameter on files that are already processed but ...
7 years, 11 months ago (2013-01-16 18:29:04 UTC) #10
oshima
by the way, I'm also working on a script to download png file directory from ...
7 years, 11 months ago (2013-01-16 18:43:30 UTC) #11
msw
Great; LGTM with optional grammar nits, thanks! https://codereview.chromium.org/11905002/diff/22001/build/sanitize-png-files.sh File build/sanitize-png-files.sh (right): https://codereview.chromium.org/11905002/diff/22001/build/sanitize-png-files.sh#newcode11 build/sanitize-png-files.sh:11: # 2) ...
7 years, 11 months ago (2013-01-16 19:21:40 UTC) #12
oshima
https://codereview.chromium.org/11905002/diff/22001/build/sanitize-png-files.sh File build/sanitize-png-files.sh (right): https://codereview.chromium.org/11905002/diff/22001/build/sanitize-png-files.sh#newcode11 build/sanitize-png-files.sh:11: # 2) optimize number of the huffman blocks. On ...
7 years, 11 months ago (2013-01-16 20:09:25 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oshima@chromium.org/11905002/24001
7 years, 11 months ago (2013-01-16 20:10:40 UTC) #14
commit-bot: I haz the power
7 years, 11 months ago (2013-01-16 20:15:54 UTC) #15
Message was sent while issue was closed.
Change committed as 177202

Powered by Google App Engine
This is Rietveld 408576698