02-13-2025, 09:37 PM
(02-13-2025, 02:42 PM)trandoductin Wrote: There is no pdb call for Exposure setting.
How do I do the equivalent?
Thank you in advance
It's a GEGL filter. Somewhat easy in GIMP3. In Gimp2, as far as I cant tell the steps are photographic exposure values (aka EV), and one EV is twice as more light. So you convert the value to linear, and multiply by 2^exposure_correction. Of course you don't do this on a pixel basis (unless you have numpy) but you can compute several values for Curves and then apply Curves. I didn't try but you can tell Gimp 2.10 that your plugin understands linear mode (pdb.gimp_plugin_enable_precision()) and this may avoids having to do sRGB<->Linear conversions.Otherwise you can help yourself to my Python code.