-
Notifications
You must be signed in to change notification settings - Fork 17
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
HEIF/AVIF file signature (magic number) #8
Comments
@DimonLavron Will look at this tomorrow, and also will test how it works with "heics" generated by last iPhones... and in last binary release as I remember, |
@DimonLavron Release will be ready on Tuesday or Wednesday, need add some additional stuff, like caching in GitHub Actions for faster build(arm build takes too long time currently) and include libaom library for AV1 format, write tests for these images: nokia heif repo and maybe will have time to make windows binary bistro. |
@bigcat88 good to hear, thanks for quick reaction! |
When they will fix this(pypa/cibuildwheel#902) at the same day new version will be posted... |
@DimonLavron release published. |
@bigcat88 thanks a lot! |
@DimonLavron published a new release(this is first version with windows wheels), there was some changes in opener mode(it must be faster now), can you please check it ? |
Hi there!
Recently I started to use pyheif-pillow-opener for one project to add support for heif/avif files. It was great until I faced with some issue, that I want to share with you, because I can see you start developing your addon a month ago and you hopefully can fix it faster on your side
So, in as_opener.py you have
check_heif_magic
method. It checks, if 5-8 bytes of signature is ftyp or 9-12 bytes of signature is one of the listed brands, but I think it should be logicaland
instead of logicalor
in return statement and that's why:I can't find too much info about HEIF/AVIF file signature, so maybe I'm wrong, but from my experience and from discussions above I assume, that this could be a bug
Thank you for your attention, would be gladful if you fix this, or tell me that I've missed something!
The text was updated successfully, but these errors were encountered: