diff options
author | Dave Parker <dparker@chromium.org> | 2012-08-14 14:26:11 -0700 |
---|---|---|
committer | Dave Parker <dparker@chromium.org> | 2012-08-16 19:03:23 -0700 |
commit | 56d1ba60866a7f9a6902997f477c3a6ba25a9cf2 (patch) | |
tree | 05efc17c1f334a35f9d5c955d221d4e2f7e6a043 | |
parent | d99c6f9620385c92a737c8c92228bd0962c90fec (diff) | |
download | vboot-56d1ba60866a7f9a6902997f477c3a6ba25a9cf2.tar.gz |
Cherry-Pick: Prevent color dithering of firmware bitmaps
BUG=None
TEST=Run 'make' in newbitmaps dir with "clean" removed from the default
step in the Makefile. Use bitmap_viewer to check that the images do not
show grainy color dithering.
Change-Id: I26682a9b2b9d19c0d33b793adec31fa0df91e220
Original-Change-Id: I6dff41338a7e54d090bb2f6dedb982fdaa31e657
Reviewed-on: https://gerrit.chromium.org/gerrit/30308
Reviewed-by: Hung-Te Lin <hungte@chromium.org>
Commit-Ready: Dave Parker <dparker@chromium.org>
Tested-by: Dave Parker <dparker@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/30628
-rwxr-xr-x | scripts/newbitmaps/images/build_images | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/newbitmaps/images/build_images b/scripts/newbitmaps/images/build_images index 88914f38..db1c4880 100755 --- a/scripts/newbitmaps/images/build_images +++ b/scripts/newbitmaps/images/build_images @@ -53,7 +53,8 @@ convert_to_bmp3() { # TODO(hungte) Find a better way to decide if PIL is required. Unfortunately, # ImageMagic identify "%z" is not always what we're looking for... local fn="$folder/$output" - python -c "import Image; Image.open('$fn').convert('P').save('$fn')" + local param="'P', dither=None, palette=Image.ADAPTIVE" + python -c "import Image; Image.open('$fn').convert($param).save('$fn')" } main() { |