Hi. I have issues with using custom output profile with both dcraw and libraw. For some reason I get sRGB all the time.
Command:
$ dcraw -v -6 -T -o AdobeRGB.icm RAW_SONY_A7RIV.ARW
Loading Sony ILCE-7RM4 image from RAW_SONY_A7RIV.ARW ...
Scaling with darkness 512, saturation 16383, and
multipliers 2.776046 1.000000 1.278800 1.000000
AHD interpolation...
Converting to sRGB colorspace...
Writing data to RAW_SONY_A7RIV.tiff ...
Hi. I have issues with using custom output profile with both dcraw and libraw. For some reason I get sRGB all the time.
Command: $ dcraw -v -6 -T -o AdobeRGB.icm RAW_SONY_A7RIV.ARW Loading Sony ILCE-7RM4 image from RAW_SONY_A7RIV.ARW ... Scaling with darkness 512, saturation 16383, and multipliers 2.776046 1.000000 1.278800 1.000000 AHD interpolation... Converting to sRGB colorspace... Writing data to RAW_SONY_A7RIV.tiff ...
My sample image and profiles: https://drive.google.com/drive/folders/1Ga_iukvQIz8SZJgumPzper1BBNqxLd7A?usp=sharing
I did modify rawpy (https://github.com/letmaik/rawpy) which is a wrapper library for libraw to pass output, here is the diff: https://github.com/letmaik/rawpy/compare/main...kamikaze:rawpy:feature/profile-params
Does anybody have any example on how to get RAW image data converted and saved into the file with a custom profile? Thanks
Also is it possible to use dcp camera profile ? I'm not sure it is working for me, but idk if it should.
And the last one: postprocess returns just a NumPy array w/o any data. How can I write the file with exif like dcraw does?