Граф коммитов

8 Коммитов

Автор SHA1 Сообщение Дата
pkasting@chromium.org a541882fea Support cygwin in sanitize-png-files.sh.
BUG=245882
TEST=Script still works correctly
R=oshima@chromium.org

Review URL: https://codereview.chromium.org/15774016

git-svn-id: http://src.chromium.org/svn/trunk/src/build@203517 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-05-31 23:59:00 +00:00
benwells@chromium.org 6f99a25857 Fix a couple of minor bugs with build/sanitize-png-files.sh
The bugs fixed are:
- programs required for -o2 weren't checked for when using -o2
but were checked for lower -o levels.
- if no savings could be found the results printed at the end
were confusing and the script had a divide by zero error.

BUG=None

Review URL: https://chromiumcodereview.appspot.com/15970004

git-svn-id: http://src.chromium.org/svn/trunk/src/build@203051 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-05-30 03:56:54 +00:00
msw@chromium.org c0ebe6c718 Install advancecomp to get advdef for build/sanitize-png-files.sh.
This should avoid the necessity to manually install advancecomp.

BUG=NONE
TEST=build/sanitize-png-files.sh installs advancecomp as needed for advdef.
R=oshima@chromium.org

Review URL: https://chromiumcodereview.appspot.com/12380012

git-svn-id: http://src.chromium.org/svn/trunk/src/build@185285 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-02-28 19:01:04 +00:00
oshima@chromium.org a1588f75e1 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

Review URL: https://codereview.chromium.org/12224023

git-svn-id: http://src.chromium.org/svn/trunk/src/build@181170 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-02-07 03:13:27 +00:00
oshima@chromium.org 09e1ce8975 Introduces optimization level 1/2
default (=1) does less optimization but runs fast
 -o (=2) does more optimization but slow.
 -n just run pngcrush and skip other optimizations

default produces good enough results and runs a lot faster,
fast enough so that we can now ask people to run.

Changed to show the results for changed files only

NOTRY=true
BUG=150046
TEST=none

Review URL: https://chromiumcodereview.appspot.com/12095097

git-svn-id: http://src.chromium.org/svn/trunk/src/build@180254 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-02-02 08:26:58 +00:00
oshima@chromium.org fc7399b062 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

Review URL: https://chromiumcodereview.appspot.com/11905002

git-svn-id: http://src.chromium.org/svn/trunk/src/build@177202 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-01-16 20:15:53 +00:00
oshima@chromium.org 70ea21b46a Remove all ancillary chunks except for tRNS
R=thakis@chromium.org
BUG=150046
TEST=none
NOTRY=true

Review URL: https://chromiumcodereview.appspot.com/11881012

git-svn-id: http://src.chromium.org/svn/trunk/src/build@176591 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-01-12 20:06:54 +00:00
oshima@chromium.org 4286774789 a utility script to pngcrush png files
BUG=150046
TEST=none
NOTRY=true

Review URL: https://chromiumcodereview.appspot.com/11825019

git-svn-id: http://src.chromium.org/svn/trunk/src/build@176157 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-01-10 21:20:04 +00:00