Skip to content
This repository has been archived by the owner on Sep 27, 2018. It is now read-only.

Commit

Permalink
storyboard: use RGB instead of RGBA
Browse files Browse the repository at this point in the history
Since Pillow 4.2.0, attempting to save an RGBA image as JPEG results in
an IOError.[1] We don't really need an alpha channel anyway (or do we?).

[1] https://github.com/python-pillow/Pillow/blob/master/docs/releasenotes/4.2.0.rst#removed-deprecated-items
  • Loading branch information
zmwangx committed Jul 19, 2017
1 parent 34dba8f commit c551683
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/storyboard/storyboard.py
Expand Up @@ -411,7 +411,7 @@ def tile_images(images, tile, params=None):
resize = False

# start assembling images
canvas = Image.new('RGBA', (canvas_width, canvas_height), canvas_color)
canvas = Image.new('RGB', (canvas_width, canvas_height), canvas_color)
y = ver_margin
for row in range(0, rows):
x = hor_margin
Expand Down

0 comments on commit c551683

Please sign in to comment.