Exported stills gamma shift

Get answers to your questions about color grading, editing and finishing with DaVinci Resolve.
  • Author
  • Message
Offline
User avatar

irfanintekhab

  • Posts: 175
  • Joined: Mon Sep 17, 2018 3:28 pm
  • Real Name: Irfan Intekhab

Exported stills gamma shift

PostMon Jan 18, 2021 2:36 pm

Hey, I've read and know about the gamma shift in QuickTime exports. I don't have a problem with gamma shifts when exporting to mxf

But I want to use some stills from a video, exporting to jpeg, tiff or png results in an image with slightly different gamma that how it appears on resolve.

The ones I want to use in the video itself I can freeze frame. But some I have to use outside of the video. And can't seem to get around this problem.

My timeline settings are rec 709 2.4 (tried changing to scene which I don't know exactly what it (scene) is but that doesn't help either)

I don't think deliver page settings do anything in exported still yet the settings are on auto levels. The project settings are on video levels.

The still I am exporting is an ungraded still. 0 nodes or changes. Directly from the video, still from color page and export.

Please help.

Also is there is a platform or group on whatsapp discord or any as such where we can all ask such quick questions. Where a dedicated thread is not needed?

Thanks!

Sent from my Moto G (5S) Plus (XT1804) using Tapatalk
Offline
User avatar

Mark Foster

  • Posts: 2089
  • Joined: Tue Oct 27, 2015 10:59 am
  • Location: austria - no kangaroos +g*

Re: Exported stills gamma shift

PostMon Jan 18, 2021 4:14 pm

cMP 5.1 2x3,46/96GB/2x2TB SSD/4x4TB/7101A 4x2TB 970evo+/HP1344/BMD4k/RadeonVII
macOS 12.6.3
BMPCC 6k pro (7.9.1)
meike s35 cine 25mm, 35mm, 50mm, 75mm
resolve studio 18.1.4
mini panel
speed editor
desktop video 12.1
intensity pro 4k
atem extreme (8.6.1)
Offline
User avatar

irfanintekhab

  • Posts: 175
  • Joined: Mon Sep 17, 2018 3:28 pm
  • Real Name: Irfan Intekhab

Re: Exported stills gamma shift

PostMon Jan 18, 2021 6:17 pm

Mark Foster wrote:https://forum.blackmagicdesign.com/viewtopic.php?f=21&t=101253
I read this. It's mainly for video I suppose. I tried things in it but to no avail. Don't know what am I missing bro

Sent from my Moto G (5S) Plus (XT1804) using Tapatalk
Offline
User avatar

irfanintekhab

  • Posts: 175
  • Joined: Mon Sep 17, 2018 3:28 pm
  • Real Name: Irfan Intekhab

Re: Exported stills gamma shift

PostThu Jan 21, 2021 2:55 pm

Any help please?

Sent from my Moto G (5S) Plus (XT1804) using Tapatalk
Offline
User avatar

irfanintekhab

  • Posts: 175
  • Joined: Mon Sep 17, 2018 3:28 pm
  • Real Name: Irfan Intekhab

Re: Exported stills gamma shift

PostTue Aug 23, 2022 5:37 am

Hey guys, any help would be great! i am still having this problem. When exporting stills, there is a tone shift. The darks get a bit lifted.

I have read the above mentioned post and that is not my problem, i do not have problems exporting video, its just the stills from gallery. No matter what i export, jpg, tiff. everything has a slight gamma shift.

did anyone experience this before? any solutions?
Offline
User avatar

Uli Plank

  • Posts: 21879
  • Joined: Fri Feb 08, 2013 2:48 am
  • Location: Germany and Indonesia

Re: Exported stills gamma shift

PostTue Aug 23, 2022 8:12 am

What happens if you mark in and out in the Deliver page and export stills (like TIFF)?
Now that the cat #19 is out of the bag, test it as much as you can and use the subforum.

Studio 18.6.6, MacOS 13.6.6, 2017 iMac, 32 GB, Radeon Pro 580
MacBook M1 Pro, 16 GPU cores, 32 GB RAM and iPhone 15 Pro
Speed Editor, UltraStudio Monitor 3G
Offline

Dante Stiller

  • Posts: 117
  • Joined: Tue Feb 27, 2018 1:20 pm
  • Location: Leipzig, Germany
  • Real Name: Dante Stiller

Re: Exported stills gamma shift

PostTue Aug 23, 2022 9:22 am

If your images have a gamma curve 2.4 but your image reader assumes 2.2 and therefore images appear too dark, then you must assign 2.4 and then convert to 2.2. This can be done in Photoshop under edit menu. Photoshop will tell you upon loading any deviation from the working color space and you can assign and convert accordingly.
Resolve Studio 18, Windows 10 pro, GTX3090, intel i5 13600K, BM Decklink 4K
Offline
User avatar

irfanintekhab

  • Posts: 175
  • Joined: Mon Sep 17, 2018 3:28 pm
  • Real Name: Irfan Intekhab

Re: Exported stills gamma shift

PostTue Aug 23, 2022 9:32 am

Uli Plank wrote:What happens if you mark in and out in the Deliver page and export stills (like TIFF)?

i didnt know we can export stills from the deliver page
Offline
User avatar

irfanintekhab

  • Posts: 175
  • Joined: Mon Sep 17, 2018 3:28 pm
  • Real Name: Irfan Intekhab

Re: Exported stills gamma shift

PostTue Aug 23, 2022 9:37 am

Dante Stiller wrote:If your images have a gamma curve 2.4 but your image reader assumes 2.2 and therefore images appear too dark, then you must assign 2.4 and then convert to 2.2. This can be done in Photoshop under edit menu. Photoshop will tell you upon loading any deviation from the working color space and you can assign and convert accordingly.


My working space is 2.4 yes and my monitors are calibrated to 2.4 as well. The exported still is not darker, it is lighter. The blacks are lifted. When i checked in photoshop, the "assign color profile" section, it was set to do not colour manage this file.

If i set this assign color profile to srgb then no change, the darks are still lifted (lighter than in resolve) when i change to adobe rbg it gets darker and normal as it is in davinci. but i dont want to deal with adobe rbg problems when uploading to web for clients or sharing.

If i then convert to profile from adobe RGB to sRGB then this way i can get back to normal contrast. However its taking me so many steps to get stills like this.
1. export still from davinci
2. open in photoshop and assign adobe RGB
3. convert to sRGB and save.

i have a lot of stills to export. there might be a way in davinci to export stills with proper contrast? and not lifted shadows like now?
Offline
User avatar

irfanintekhab

  • Posts: 175
  • Joined: Mon Sep 17, 2018 3:28 pm
  • Real Name: Irfan Intekhab

Re: Exported stills gamma shift

PostTue Aug 23, 2022 10:08 am

Also that is not proper math. When I assign Adobe RGB, the colors change a bit. Gets more saturated. I have to tone that down again and that creates some variations
Offline

Hendrik Proosa

  • Posts: 3059
  • Joined: Wed Aug 22, 2012 6:53 am
  • Location: Estonia

Re: Exported stills gamma shift

PostTue Aug 23, 2022 11:41 am

If AdobeRGB to sRGB conversion somewhat works the problem lies in the toe region of transfer function. AdobeRGB and sRGB transfer curves are both 2.2-ish but first is pure gamma curve and another has a linear toe region. So what you could do is try interpreting the tiffs simply as gamma 2.2 / sRGB primaries source and then convert to sRGB, then you get rid of gamut transform which messes with your color saturation.

In Resolve you can try adding Color Space Transform effect with input gamma set to 2.2 and output gamma set to sRGB and see if it produces what you expect as output.
I do stuff
Offline

mickspixels

  • Posts: 481
  • Joined: Tue May 17, 2022 10:29 pm
  • Location: Western Europe
  • Real Name: Michael David Murphy

Re: Exported stills gamma shift

PostTue Aug 23, 2022 5:45 pm

irfanintekhab wrote:
My working space is 2.4 yes and my monitors are calibrated to 2.4 as well. The exported still is not darker, it is lighter. The blacks are lifted. When i checked in photoshop, the "assign color profile" section, it was set to do not colour manage this file.

If i set this assign color profile to srgb then no change, the darks are still lifted (lighter than in resolve) when i change to adobe rbg it gets darker and normal as it is in davinci. but i dont want to deal with adobe rbg problems when uploading to web for clients or sharing.

If i then convert to profile from adobe RGB to sRGB then this way i can get back to normal contrast. However its taking me so many steps to get stills like this.
1. export still from davinci
2. open in photoshop and assign adobe RGB
3. convert to sRGB and save

Also that is not proper math. When I assign Adobe RGB, the colors change a bit. Gets more saturated. I have to tone that down again and that creates some variations



I am not sure what the answers to your problems are but one thing you are doing wrong here for sure is assigning an AdobeRGB Profile and making modifications to the image from there. Assigning a color profile in Photoshop does not change the color numbers, it just changes the way they look on your screen. You can verify this using the eyedropper tool in Photoshop. So you are actually changing the colors yourself by modifying the image after you assign the profile. The general advice from the experts is to only use Assign Profile when you have a file that has no color profile or an incorrect profile. However, it makes no sense here to assign AdobeRGB even if the image is untagged, as that is not what you want in any case. You are only distorting your view of the image.

How about setting the Working Space in Photoshop to sRGB in the Color Settings and then setting it to Convert to Working RGB in the Color Management Policies. That will cut out the unnecessary and misleading step 2 and step 3 becomes automatic. If you find that the images do not look as you want them to then just create an action that will get you in the right ball park if they are all similarly off and/or tweak manually.
Offline

Hendrik Proosa

  • Posts: 3059
  • Joined: Wed Aug 22, 2012 6:53 am
  • Location: Estonia

Re: Exported stills gamma shift

PostTue Aug 23, 2022 6:18 pm

mickspixels wrote:How about setting the Working Space in Photoshop to sRGB in the Color Settings and then setting it to Convert to Working RGB in the Color Management Policies. That will cut out the unnecessary and misleading step 2 and step 3 becomes automatic. If you find that the images do not look as you want them to then just create an action that will get you in the right ball park if they are all similarly off and/or tweak manually.

If image does not have profile attached, automatic conversion will not do anything because source colorspace is unknown.
I do stuff
Offline

mickspixels

  • Posts: 481
  • Joined: Tue May 17, 2022 10:29 pm
  • Location: Western Europe
  • Real Name: Michael David Murphy

Re: Exported stills gamma shift

PostTue Aug 23, 2022 7:05 pm

Hendrik Proosa wrote:
mickspixels wrote:.

If image does not have profile attached, automatic conversion will not do anything because source colorspace is unknown.


OK you are right - you need to have Missing Profiles set to Ask When Opening and you get a dialog where you can assign the working space profile (sRGB in this case). When you save the file it will be tagged sRGB. The important point really is he should not be assigning AdobeRGB and making modifications based on what he sees after doing that.
Offline

Dante Stiller

  • Posts: 117
  • Joined: Tue Feb 27, 2018 1:20 pm
  • Location: Leipzig, Germany
  • Real Name: Dante Stiller

Re: Exported stills gamma shift

PostWed Aug 24, 2022 8:15 am

when i change to adobe rbg it gets darker

Have you tried assigning HDTV (rec709) instead of Adobe RGB before converting to sRGB? Adobe RGB is incorrect as you mentioned. It has different primaries and the wrong gamma.
my monitors are calibrated to 2.4 as well

Your desktop is calibrated to rec709? Or just the viewing monitor for Resolve? Rec709 is just for videos. Everything else assumes sRGB.
Resolve Studio 18, Windows 10 pro, GTX3090, intel i5 13600K, BM Decklink 4K
Offline

mickspixels

  • Posts: 481
  • Joined: Tue May 17, 2022 10:29 pm
  • Location: Western Europe
  • Real Name: Michael David Murphy

Re: Exported stills gamma shift

PostWed Aug 24, 2022 9:53 am

Dante Stiller wrote:
when i change to adobe rbg it gets darker

Have you tried assigning HDTV (rec709) instead of Adobe RGB before converting to sRGB? Adobe RGB is incorrect as you mentioned. It has different primaries and the wrong gamma.


That would actually be a pointless diversion with no purpose. To reiterate, assigning a profile in Photoshop does nothing to the color numbers, it just alters the appearance of the image. So assigning AdobeRGB is like putting a saturation filter (whatever that might be) over the screen. It will make the image appear more saturated while having no actual effect on the underlying image. Making modifications to the image with such a "filter" is pointless when you are going to convert it to sRGB afterwards as the results will be unpredictable. Assigning a Rec.709 profile would probably make no difference at all in any case as Rec709 and sRGB are very similar but again this would be pointless. It just complicates the workflow and has no purpose.

The simple way to approach this is to convert to sRGB in Photoshop (whichever method you choose to do that) and make any modifications there if sRGB is going to be the final output space. Finally I wonder if it is worth getting too worried about exact matching the stills in Photoshop with the stills in Resolve given that these images are destined for the web it seems and there may be little or no control over how they are viewed in the end.
Offline

Hendrik Proosa

  • Posts: 3059
  • Joined: Wed Aug 22, 2012 6:53 am
  • Location: Estonia

Re: Exported stills gamma shift

PostWed Aug 24, 2022 10:18 am

Op is already doing a conversion, no-one here is arguing that simply changing the profile metadata changes pixel values. Let me quote op again with emphasis:
irfanintekhab wrote:However its taking me so many steps to get stills like this.
1. export still from davinci
2. open in photoshop and assign adobe RGB
3. convert to sRGB and save.


As for this:
mickspixels wrote:So assigning AdobeRGB is like putting a saturation filter (whatever that might be) over the screen. It will make the image appear more saturated while having no actual effect on the underlying image. Making modifications to the image with such a "filter" is pointless when you are going to convert it to sRGB afterwards as the results will be unpredictable.

Assigning AdobeRGB and working under view transform to sRGB or converting first and then working on sRGB data only changes how tools react. It does not distort what one sees, because result is in sRGB space in both cases. If results were unpredictable, it would meal all color management everywhere would not work at all. Yet it does. In one case data flow is:
- AdobeRGB interpreted data > do work > apply view transform to sRGB > look at piece with eyes;
In another case it will be:
- AdobeRGB interpreted data > apply conversion transform to sRGB > do work > apply no view transform > look at piece with eyes;

Adobe RGB is ofcourse wrong, but it does give some clues to what is different and what is similar when conversion from AdobeRGB to sRGB fixes gamma issues but introduces saturation issues. I have already explained my reasoning above about how this could be overcome in Resolve.
I do stuff
Offline

mickspixels

  • Posts: 481
  • Joined: Tue May 17, 2022 10:29 pm
  • Location: Western Europe
  • Real Name: Michael David Murphy

Re: Exported stills gamma shift

PostWed Aug 24, 2022 10:54 am

I was just trying to keep things simple as the Assign Profile is an unnecessary step whatever profile one assigns and it will affect how one modifies the image while assigned.

So to explain what I mean let's use a simple example.

1.Open an image already tagged sRGB in sRGB working space in Photoshop. Using the Color Sampler tool (under the eyedropper tool) sample a couple of points.

2. Assign an AdobeRGB profile using the Edit-Assign Profile command. Note that the color numbers stay the same but the image will change in appearance (how much will depend on the image of course).

3. Do some edits and save.

4. Repeat the procedure without step 2 and save. Chances are you will have two different looking images. That is the simple point I was making.

Note that if instead of assigning a profile you Convert Profile to AdobeRGB then the color numbers will change.
Offline

Jaka Kovacic

  • Posts: 5
  • Joined: Thu Apr 07, 2016 11:04 pm

Re: Exported stills gamma shift

PostTue Oct 11, 2022 10:09 am

Hello.

I have same problem. Do you find a solution to this, beside Photoshop work around?

Best
Jaka
Offline

elkins.alex

  • Posts: 71
  • Joined: Fri Dec 20, 2013 2:57 pm

Re: Exported stills gamma shift

PostFri Mar 31, 2023 10:19 am

I have a simple solution for future reference (probably mine as well next time I have to google this!)

My settings and issues match exactly with the original post - Rec 709 2.4 project. When viewed in Preview, exported stills have a gamma shift making them appear slightly washed out. This is the same whether exporting stills from the Color page or exporting a TIFF sequence.

The issue appears to be that MacOS/Preview can't read the colour profile information that Resolve tags stills with. This can be confirmed by viewing the file info (CMD+I) - a comparison of this info before and after the fix is below.

Screenshot 2023-03-31 at 11.03.47.jpg
Screenshot 2023-03-31 at 11.03.47.jpg (27.62 KiB) Viewed 1629 times


I discovered that Photoshop reads the colour profile settings correctly, and I also know that when you save a file out of Photoshop that Preview/MacOS will see that colour profile information. So the solution is to either force Photoshop to tag the file as Rec.709 / Gamma 2.4 in a way that MacOS will understand, or actually bake in a conversion from 709/2.4 to sRGB. Both will work, but I opted for the latter as a way to hopefully avoid further issues if those stills ever get opened up on a computer that can't read the 709/2.4 tag properly.

So that's the theory. To apply the fix, open the still in Photoshop and go to Edit > Convert to Profile

A window will open that should tell you that the Source Space is Rec.709 Gamma 2.4.

Either change the Destination Space to Rec.709 Gamma 2.4 or change it to sRGB - up to you as per the explanation above.

Save the file.

Mac OS/Preview will now correctly interpret the colour profile.

I haven't attempted to set this up as a batch action but presumably it's possible for anyone dealing with lots of stills.
Offline

davo_me

  • Posts: 147
  • Joined: Tue Jan 29, 2019 11:36 pm
  • Real Name: Davo McConville

Re: Exported stills gamma shift

PostFri Apr 19, 2024 10:48 am

Hey Alex -

Thanks for this, in following your directions I've discovered that my output stills from Davinci Resolve are in the profile sRGB iec61966.

This is bizarre and I can't understand it based on my setup. Does anyone recognise why they might be in this color profile?

Thanks


elkins.alex wrote:I have a simple solution for future reference (probably mine as well next time I have to google this!)

My settings and issues match exactly with the original post - Rec 709 2.4 project. When viewed in Preview, exported stills have a gamma shift making them appear slightly washed out. This is the same whether exporting stills from the Color page or exporting a TIFF sequence.

The issue appears to be that MacOS/Preview can't read the colour profile information that Resolve tags stills with. This can be confirmed by viewing the file info (CMD+I) - a comparison of this info before and after the fix is below.

Screenshot 2023-03-31 at 11.03.47.jpg


I discovered that Photoshop reads the colour profile settings correctly, and I also know that when you save a file out of Photoshop that Preview/MacOS will see that colour profile information. So the solution is to either force Photoshop to tag the file as Rec.709 / Gamma 2.4 in a way that MacOS will understand, or actually bake in a conversion from 709/2.4 to sRGB. Both will work, but I opted for the latter as a way to hopefully avoid further issues if those stills ever get opened up on a computer that can't read the 709/2.4 tag properly.

So that's the theory. To apply the fix, open the still in Photoshop and go to Edit > Convert to Profile

A window will open that should tell you that the Source Space is Rec.709 Gamma 2.4.

Either change the Destination Space to Rec.709 Gamma 2.4 or change it to sRGB - up to you as per the explanation above.

Save the file.

Mac OS/Preview will now correctly interpret the colour profile.

I haven't attempted to set this up as a batch action but presumably it's possible for anyone dealing with lots of stills.

Return to DaVinci Resolve

Who is online

Users browsing this forum: panos_mts and 145 guests