Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to pass Pillow's Exif to save without calling tobytes #51

Closed
bigcat88 opened this issue Nov 20, 2022 · 0 comments · Fixed by #56
Closed

Ability to pass Pillow's Exif to save without calling tobytes #51

bigcat88 opened this issue Nov 20, 2022 · 0 comments · Fixed by #56
Labels
enhancement New feature or request

Comments

@bigcat88
Copy link
Owner

Describe why it is important and where it will be useful

im = Image.new("L", size=(1, 1))
exif = im.getexif()
exif[Base.ImageDescription.value] = "description"
buf = BytesIO()
im.save(buf, format="HEIF", exif=exif)  # <-- here 
print(Image.open(buf).getexif())

Describe your proposed solution

If passed object is Pillow's Exif then pillow-heif itself should call tobytes method.

Describe alternatives you've considered, if relevant

No response

Additional context

Pillow itself supports such thing...

@bigcat88 bigcat88 added the enhancement New feature or request label Nov 20, 2022
bigcat88 added a commit that referenced this issue Nov 25, 2022
bigcat88 added a commit that referenced this issue Nov 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant