You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reason why it is important to me.
I received such an issue where images in HEIF format created by Sony ILCE-7M4 camera has encoded size in itself different from the size value in HEIF header. (HEIF format has size in header and also size of decoded image, and for some unknown reason they can be different)
As I wrote in that issue, I added an optional option ALLOW_INCORRECT_HEADERS(default disabled) that will allow to load such images, and just change the Image.size during load method.
Tested it, and all seems work well, except this array property, cause here first fills image size in _conv_type_shape and after that Image get decoded.
This simple change will do nothing worse, so I will be very appreciated if you agree to move that lines.
Thanks.
The text was updated successfully, but these errors were encountered:
To be short, I want to ask to one change that do not break any compatibility, and this case is not usual.
Here is what Pillow has now:
Pillow/src/PIL/Image.py
Lines 686 to 712 in e7fa309
I want to ask to move these lines:
at the end , right after before
return new
Reason why it is important to me.
I received such an issue where images in
HEIF
format created by Sony ILCE-7M4 camera has encoded size in itself different from the size value inHEIF
header. (HEIF format hassize
in header and alsosize
of decoded image, and for some unknown reason they can be different)As I wrote in that issue, I added an optional option ALLOW_INCORRECT_HEADERS(default disabled) that will allow to load such images, and just change the
Image.size
duringload
method.Tested it, and all seems work well, except this array property, cause here first fills image size in
_conv_type_shape
and after that Image get decoded.This simple change will do nothing worse, so I will be very appreciated if you agree to move that lines.
Thanks.
The text was updated successfully, but these errors were encountered: