summaryrefslogtreecommitdiff
path: root/tests/test_helpers.py
diff options
context:
space:
mode:
authoryenatch <yenatch@gmail.com>2014-03-23 18:40:34 -0400
committeryenatch <yenatch@gmail.com>2014-03-23 19:30:25 -0400
commit12d8bb11e82ba44ee6a04a52497381833a7b5924 (patch)
tree87afe3c0b8cba123132812e7988d2783e1aa8428 /tests/test_helpers.py
parent1129d71e2ccd3bfe4d635cf7d280a300c0338b09 (diff)
gfx: Read image metadata from filenames where applicable.
png has some incompatibilities with 2bpp. Among them: - 2bpp is tiled, and can be arranged arbitrarily - 2bpp does not have associated palette data - png must be rectangular - png must have specific dimensions The requirements for an image vary, and are unwritten. One conversion method will not work for all images. To resolve these conflicts metadata can be attached to images and related data. So as to not create additional files without changing the file content, the filename is used. Usage: metadata is defined as pseudoextensions. .w<width> - force width to <width> px .h<height> - force height to <height> px .t<num> - pad the image by <num> tiles so the resulting png can be rectangular - remove said tiles when converting back to 2bpp Example: gfx/title/logo.w160.t4.{lz,2bpp,png} - width 160px - pad by 4 tiles
Diffstat (limited to 'tests/test_helpers.py')
0 files changed, 0 insertions, 0 deletions