mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-11-24 02:05:01 +00:00
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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user