Skip to content

Commit

Permalink
fixing internal parameter name from previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
bigcat88 committed Jun 24, 2022
1 parent 7f6bae1 commit 9d20451
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pillow_heif/as_opener.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,12 +108,12 @@ def _init_from_heif_file(self, img_index: int) -> None:


def _save(im, fp, _filename):
heif_file = HeifFile().add_from_pillow(im, load_one=True, thumbs_no_data=True)
heif_file = HeifFile().add_from_pillow(im, load_one=True, for_encoding=True)
heif_file.save(fp, save_all=False, **im.encoderinfo)


def _save_all(im, fp, _filename):
heif_file = HeifFile().add_from_pillow(im, ignore_primary=False, thumbs_no_data=True)
heif_file = HeifFile().add_from_pillow(im, ignore_primary=False, for_encoding=True)
heif_file.save(fp, save_all=True, **im.encoderinfo)


Expand Down

0 comments on commit 9d20451

Please sign in to comment.