Comments (7)
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 nclx
embedded in stream and not in image.
And during encoding libheif
embeds it in stream.
I will take a look today at this.
from pillow_heif.
When libheif will add such ability, I immediately will add tests for this in pillow_heif, as I myself waiting for it.
from pillow_heif.
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.
I'm not entirely sure how my HEIC was generated but I'd be surprised if they didn't use libheif themselves...
from pillow_heif.
This is real, a perfect issue.
Thank you for pointing on this.
Need to set macOS_compatibility_workaround_no_nclx_profile
flag to false, to make it works.
But in current version it is not possible.
Will try to do a fix for a new one that is coming.
from pillow_heif.
Done. New version will be published, as soon as Python3.12 RC1 will come and cibuildwheel
will get update for it(early August).
from pillow_heif.
done, new version is out
from pillow_heif.
P.S.: In new upcoming version #171 NCLX is saved by default.
from pillow_heif.
Related Issues (20)
- License inconsistency betweent the LICENSE file and the setup.cfg metadata HOT 6
- AUX images support
- Offline build HOT 6
- Failed to build x265 in freebsd 13.2 HOT 6
- Cannot install via PIP on raspberry pi HOT 7
- Libheif plugin support HOT 8
- issue with heic files using Pillow-SIMD but not Pillow HOT 3
- Small memory leak when opening image with `nclx` color profile
- XMP containing invalid bytes leading fail to decode image HOT 4
- Packaging as egg says "ModuleNotFoundError: No module named '_pillow_heif_cffi'" HOT 7
- `0.10.x` version, changes topic. HOT 1
- Process get crashed with a corrupted file HOT 1
- Depth Images support HOT 10
- After decoding Image dimensions not equal the one in the headers HOT 7
- crash during encoding when using with cv2 [macOS] HOT 2
- Crash when trying to get exif image data HOT 6
- EXIF data are not transferred correctly HOT 3
- support of native non-shifted HDR [v0.11.2] HOT 1
- reading support of monochrome images HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pillow_heif.