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

Issue 12224023: Skip optipng if it reduced the color type from rgb to grayscale/grayscale+alpha. (Closed)

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

Description

Skip optipng if it reduced the color type from rgb to grayscale/grayscale+alpha. There seems to be a bug in optipng's bit depth reduction when coverting to grayscale. We don't know exact condition, but its savings is relatively small, so we should just skip this process for grayscale images. BUG=174505 TEST=none NOTRY=true Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=181170

Patch Set 1 : #

Patch Set 2 : #

Total comments: 2

Patch Set 3 : #

Total comments: 2

Patch Set 4 : use file #

Patch Set 5 : use file #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -1 line) Patch
M build/sanitize-png-files.sh View 1 2 3 4 2 chunks +29 lines, -1 line 2 comments Download

Messages

Total messages: 9 (0 generated)
oshima
7 years, 10 months ago (2013-02-06 02:45:01 UTC) #1
Nico
Sorry, missed this. https://codereview.chromium.org/12224023/diff/7001/build/sanitize-png-files.sh File build/sanitize-png-files.sh (right): https://codereview.chromium.org/12224023/diff/7001/build/sanitize-png-files.sh#newcode228 build/sanitize-png-files.sh:228: # crbug.com/174505, crbug.com/174084. Should we fix ...
7 years, 10 months ago (2013-02-06 21:53:30 UTC) #2
oshima
https://codereview.chromium.org/12224023/diff/7001/build/sanitize-png-files.sh File build/sanitize-png-files.sh (right): https://codereview.chromium.org/12224023/diff/7001/build/sanitize-png-files.sh#newcode228 build/sanitize-png-files.sh:228: # crbug.com/174505, crbug.com/174084. On 2013/02/06 21:53:30, Nico wrote: > ...
7 years, 10 months ago (2013-02-06 22:34:09 UTC) #3
Nico
lgtm, thanks https://codereview.chromium.org/12224023/diff/10001/build/sanitize-png-files.sh File build/sanitize-png-files.sh (right): https://codereview.chromium.org/12224023/diff/10001/build/sanitize-png-files.sh#newcode195 build/sanitize-png-files.sh:195: echo $(identify -verbose $file | awk '/IHDR.color_type/ ...
7 years, 10 months ago (2013-02-06 22:46:23 UTC) #4
oshima
PTAL https://codereview.chromium.org/12224023/diff/10001/build/sanitize-png-files.sh File build/sanitize-png-files.sh (right): https://codereview.chromium.org/12224023/diff/10001/build/sanitize-png-files.sh#newcode195 build/sanitize-png-files.sh:195: echo $(identify -verbose $file | awk '/IHDR.color_type/ {print ...
7 years, 10 months ago (2013-02-06 23:30:37 UTC) #5
Nico
still lgtm https://codereview.chromium.org/12224023/diff/12001/build/sanitize-png-files.sh File build/sanitize-png-files.sh (right): https://codereview.chromium.org/12224023/diff/12001/build/sanitize-png-files.sh#newcode18 build/sanitize-png-files.sh:18: Should this have a `set -e` `set ...
7 years, 10 months ago (2013-02-06 23:34:56 UTC) #6
oshima
https://codereview.chromium.org/12224023/diff/12001/build/sanitize-png-files.sh File build/sanitize-png-files.sh (right): https://codereview.chromium.org/12224023/diff/12001/build/sanitize-png-files.sh#newcode18 build/sanitize-png-files.sh:18: On 2013/02/06 23:34:56, Nico wrote: > Should this have ...
7 years, 10 months ago (2013-02-06 23:46:23 UTC) #7
Nico
On Wed, Feb 6, 2013 at 3:46 PM, <oshima@chromium.org> wrote: > > https://codereview.chromium.org/12224023/diff/12001/build/sanitize-png-files.sh > File ...
7 years, 10 months ago (2013-02-06 23:52:11 UTC) #8
commit-bot: I haz the power
7 years, 10 months ago (2013-02-07 00:02:57 UTC) #9

Powered by Google App Engine
This is Rietveld 408576698