bmpblk: Port to Python 3

Port Python scripts to Python 3. Remove the outdated bitmap_viewer
utility and related files due to lack of Python 3 support.

As a side effect, the package Pillow is upgraded from 1.1.7 to 3.4.2.
The ANTIALIAS filter was previously used to resize the image in
build_images.py for producing high quality images. Starting from Pillow
2.7.0, however, all the filters are changed to be convolutions-based. As
a result, this patch changes to use the default BICUBIC filter, which
improves the image quality, mitigates text color deviation, and reduces
the bitmap archive size after LZMA compression.

BUG=chromium:1011520, b:159401104
TEST=python3 -m compileall -q archive_images.py strings/ images/
TEST=USE="-menu_ui" emerge-puff chromeos-bmpblk
TEST=USE="menu_ui" emerge-puff chromeos-bmpblk
TEST=emerge-scarlet chromeos-bmpblk chromeos-bootimage

Cq-Depend: chromium:2246369
Change-Id: Ic5d2a916d9c21c19c394106d8bc7ff3206e49b5a
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/bmpblk/+/2246407
Commit-Queue: Yu-Ping Wu <yupingso@chromium.org>
Tested-by: Yu-Ping Wu <yupingso@chromium.org>
Reviewed-by: Hung-Te Lin <hungte@chromium.org>
3 files changed
tree: 58bbde5654c6e897042f899bf9f812a286346d80
  1. images/
  2. strings/
  3. .gitignore
  4. archive_images.py
  5. Makefile
  6. OWNERS
  7. README