letmaik / rawpy

📷 RAW image processing for Python, a wrapper for libraw
https://pypi.python.org/pypi/rawpy
MIT License
587 stars 67 forks source link

getting image color profile #196

Closed kamikaze closed 1 year ago

kamikaze commented 1 year ago

Hi. After processing RAW image with any of ColorSpace values how can I save image data with icc profile? Somehow RAW data has been converted so it would be nice to have such color profile data available to save into let's say JPEG file otherwise images are being displayed incorrectly.

letmaik commented 1 year ago

rawpy only outputs RGB pixel data. How you save that data to a file is out of scope for rawpy at this point. To include the icc profile you'd have to find a library or tool that can write EXIF metadata to a JPEG file for example. Might be worth asking this question in the libraw forums.