summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Parker <dparker@chromium.org>2012-08-14 14:26:11 -0700
committerGerrit <chrome-bot@google.com>2012-08-15 19:28:15 -0700
commit06e8e900188429b842550f7c17d0a1b12349db3c (patch)
treeab7f7d22a216cda55e97b461c0d2989df956a03d
parent6cda3966ec5180acad3f30d14000d3ee1ae46c26 (diff)
downloadvboot-06e8e900188429b842550f7c17d0a1b12349db3c.tar.gz
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: 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>
-rwxr-xr-xscripts/newbitmaps/images/build_images3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/newbitmaps/images/build_images b/scripts/newbitmaps/images/build_images
index 375bd2cc..269d5e6c 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() {