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>
This commit is contained in:
Dave Parker
2012-08-14 14:26:11 -07:00
committed by Gerrit
parent 6cda3966ec
commit 06e8e90018

View File

@@ -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() {