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

Add HEIF/HEIC image support. #2018

Closed
wants to merge 1 commit into from
Closed

Add HEIF/HEIC image support. #2018

wants to merge 1 commit into from

Conversation

Corvus4n6
Copy link

Added the ability to render HEIF or HEIC (Apple) images into PDFs.

@liZe
Copy link
Member

liZe commented Dec 11, 2023

Hi!

Thanks for this pull request.

The HEIF format is not supported in Pillow because of patent problems, and for the same reason it’s not supported in Chrome and Firefox. To be honest, I don’t think that it’s a good idea to support it WeasyPrint, I’ll follow what Pillow does.

If you want to take the legal risk, you actually don’t even need to change WeasyPrint’s code. You can write a very small Python wrapper around WeasyPrint that uses the code of this PR before importing WeasyPrint.

But I won’t be there when the police comes for you! 😄

@liZe liZe closed this Dec 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants