diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2013-02-08 15:28:07 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2013-02-08 15:28:07 +0000 |
commit | b6abad5fbf5877bf9c26269bff418726f26e4b9d (patch) | |
tree | 945b66a02dfe50fed4a55a500a96f11d81d7d9e3 /NxWidgets/tools/bitmap_converter.py | |
parent | 1442e62637fa138626671be49b51d5329c6536c3 (diff) | |
download | nuttx-b6abad5fbf5877bf9c26269bff418726f26e4b9d.tar.gz nuttx-b6abad5fbf5877bf9c26269bff418726f26e4b9d.tar.bz2 nuttx-b6abad5fbf5877bf9c26269bff418726f26e4b9d.zip |
Several patches from Petteri Aimonen
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5625 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'NxWidgets/tools/bitmap_converter.py')
-rwxr-xr-x | NxWidgets/tools/bitmap_converter.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/NxWidgets/tools/bitmap_converter.py b/NxWidgets/tools/bitmap_converter.py index 2cb7e8869..1c5337741 100755 --- a/NxWidgets/tools/bitmap_converter.py +++ b/NxWidgets/tools/bitmap_converter.py @@ -121,7 +121,7 @@ if __name__ == '__main__': print "Usage: bitmap_converter.py source.png output.cxx" sys.exit(1) - img = Image.open(sys.argv[1]) + img = Image.open(sys.argv[1]).convert("RGB") outfile = open(sys.argv[2], 'w') palette = get_palette(img) |