Skip to content

Commit

Permalink
pass dpi arg down to pillow
Browse files Browse the repository at this point in the history
  • Loading branch information
neutrinoceros committed Jul 17, 2020
1 parent e8f960e commit 6a5b6b1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions yt/utilities/png_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ def call_png_write_png(buffer, fileobj, dpi):
try:
_png.write_png(buffer, fileobj, dpi)
except NameError:
# I don't get how not to pass the dpi argument atm
Image.fromarray(buffer).save(fileobj)
Image.fromarray(buffer).save(fileobj, dpi=(dpi, dpi))


def write_png(buffer, filename, dpi=100):
Expand Down

0 comments on commit 6a5b6b1

Please sign in to comment.