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

postprocess to get image similar to in-camera jpeg #193

Closed kamikaze closed 11 months ago

kamikaze commented 1 year ago

Hi. Is there any way to post-process RAW data to get something similar to in-camera JPEG? Any params? Or any way to apply camera dcp profile? Thanks

kamikaze commented 1 year ago

I guess these params could help a little bit:

From: https://www.libraw.org/docs/API-datastruct-eng.html

char* output_profile;
    dcraw keys: -o filename
    Path to output profile ICC file (used only if LibRaw compiled with LCMS support)

char* camera_profile;
    dcraw keys: -p file
    Path to input (camera) profile ICC file (or 'embed' for embedded profile). Used only if LCMS support compiled in.

is there any change to get them in Params class?

letmaik commented 1 year ago

Are you able to achieve a reasonable result by using dcraw directly, e.g. from https://www.libraw.org/download?