-
Notifications
You must be signed in to change notification settings - Fork 18
How to save "nclx_profile" in a HEIC image? #118
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
Comments
I am not sure that it is not set, need to check, earlier versions of libheif was able to set it, but was not able to retrieve it after set, as libheif does not support reading of |
When libheif will add such ability, I immediately will add tests for this in pillow_heif, as I myself waiting for it. |
Are you saying that the NCLX data is indeed stored, but not read? I have a HEIC file (that I can't share, unfortunately) where there are multiple images and each of them does have the information read correctly by pillow-heif from pillow_heif import open_heif
i = open_heif("myfile.heic")
i[0].info['nclx_profile'] # working
i[1].info['nclx_profile'] # working I'm trying to construct a similar file using: primary_pil.save(..., append_images=[secondary_pil]) and putting the nclx_profile on both PILs' info. |
This is real, a perfect issue.Thank you for pointing on this. Will try to do a fix for a new one that is coming. |
Done. New version will be published, as soon as Python3.12 RC1 will come and |
done, new version is out |
P.S.: In new upcoming version #171 NCLX is saved by default. |
I'm trying to add the "nclx_profile" metadata to a new HEIC file.
I'm setting this key as a dict in
pil_image.info
, but when I save and load the photo the data isn't there.Full example code to reproduce:
The text was updated successfully, but these errors were encountered: