Skip to content

Commit

Permalink
Merge pull request #1 from himesaka-noa/master
Browse files Browse the repository at this point in the history
Compatible with pypng 0.0.20
  • Loading branch information
SAPikachu authored Oct 30, 2019
2 parents e435d44 + 7fcd254 commit 34a1331
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions igstools/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def picture_to_png(pic, palette, stream, matrix, tv_range=True):
with memoryview(image_buffer) as main_view:
with main_view.cast("H") as view:
picture_data_to_rgb(pic, rgb_palette, view)
writer = png.Writer(width, height, alpha=True, bitdepth=16)
writer = png.Writer(width, height, alpha=True, bitdepth=16, greyscale=False)
writer.write_array(stream, view)


Expand Down Expand Up @@ -120,7 +120,7 @@ def page_to_png(
buffer_offset=stride * button.y + button.x * 4,
)

writer = png.Writer(width, height, alpha=True, bitdepth=16)
writer = png.Writer(width, height, alpha=True, bitdepth=16, greyscale=False)
writer.write_array(stream, view)


Expand Down

0 comments on commit 34a1331

Please sign in to comment.