-
Notifications
You must be signed in to change notification settings - Fork 18
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
After decoding Image dimensions not equal the one in the headers #86
Comments
I will try to change code, so it will change |
Personally speaking, at least, in this case, I intuitively believed that PS: I totally agree with your sayings. In fact, I literally learned this EXIF orientation thing thanks to this incident. I always thought IOS image rotation directly applied transposition to the data. |
Yes, the image you posted will work in the next version. But for some reason it loads very slowly (I see such themes in the |
Sure thing, m8. Feel free to use them as you like. I didn't mention it but have managed to use the code snippet to convert all the others without rotation applied to JPGs like a charm. You can keep me up to date, I am also interested in this after totally switching my photography workflow into HEIF format. Maybe I can help and fire some PRs as well if I got time xD https://drive.google.com/file/d/1tNkNp7a8ecpQrxopxYm7a9tnXZBDAfKA/view?usp=sharing |
from pillow_heif import register_heif_opener
register_heif_opener(allow_incorrect_headers=True) Will do the job for such files. |
@Soooda done! |
Confirmed fixed! Work like a charm from my end, cheers bro~ |
Discussed in #85
Originally posted by Soooda March 17, 2023
Hello all,
I tried to convert some of my HIF images into JPGs and found some of the images were throwing the below error:
The root cause was that I had applied rotation to my images and on the IOS system, the rotation was applied to the EXIF rather than the image data itself.
I made use of
exif_transpose()
to compensate for that. But the error is still popping up. It looks likepillow_heif
does not supportexif_transpose()
and I wonder if this is an intended behaviour?The text was updated successfully, but these errors were encountered: