Before the rush

Before the rush
by evan-pak

Submit your Photo
Hall of Fame

Please participate in Meta
and help us grow.

Photography Stack Exchange is a question and answer site for professional, enthusiast and amateur photographers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to invert the brightness in a RAW. I do not want to invert the colors, only the brightness of the colors. Can I do that in darktable 1.4.2, and if yes how?

Edit: By inverting brightness, I mean as described here:

I think I understand the idea but don't know if/how I can do this in darktable.

share|improve this question
up vote 5 down vote accepted

Open the "tone curve" module and create a straight line from the top left to the bottom right corner. You can just drag the endpoints with the mouse. Then, set "scale chroma" to "manual".

Tone curve in untouched state The applied inverse tone curve should look like this

share|improve this answer

I have no idea how to do this in any particular canned app, but the actual manipulations don't sound that hard. I'd start by converting from RGB to intensity, hue, and saturation, then flipping intensity, then converting that back to RGB.

If you look at that math closely, you may be able to find a way to perform the same overall operation directly from RGB to RGB without actually doing the conversion to IHS and back. Conceptually that's what you'd do, but the actual manipulations would be quicker.

Perhaps there is image editing software out there that lets you define manipulations to perform per pixel with a script or by supplying your own subroutine or something.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.