Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Exposure for Plug-in
#3
(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.
Reply


Messages In This Thread
Exposure for Plug-in - by trandoductin - 02-13-2025, 02:42 PM
RE: Exposure for Plug-in - by trandoductin - 02-13-2025, 09:29 PM
RE: Exposure for Plug-in - by Ofnuts - 02-13-2025, 09:43 PM
RE: Exposure for Plug-in - by Ofnuts - 02-13-2025, 09:37 PM
RE: Exposure for Plug-in - by trandoductin - 02-14-2025, 12:17 AM
RE: Exposure for Plug-in - by Ofnuts - 02-14-2025, 09:14 AM
RE: Exposure for Plug-in - by trandoductin - 02-16-2025, 03:10 AM
RE: Exposure for Plug-in - by Ofnuts - 02-16-2025, 10:02 AM
RE: Exposure for Plug-in - by rich2005 - 02-16-2025, 09:15 AM
RE: Exposure for Plug-in - by trandoductin - 02-16-2025, 10:23 AM
RE: Exposure for Plug-in - by Ofnuts - 02-16-2025, 05:52 PM

Forum Jump: