GIMP exported Picture darker than Original at Zoom, but not at 100% export

Hello, I have a Problem that i can’t solve:

I have processed a big astro-Picture in Gimp and there it looks perfect.
The Gimp View ist at 6,25% at the moment of Screenshot.
I export the Picture to Tiff and open it with Irfanview or Windows viewer or Siril, it is exact the same color everywhere, but always Darker than in Gimp:

When i resize the Image in Gimp to a Screen Size, and export now, the Colors are correct:

I have tried all with Color Profiles, but no effect.

This Problem only occurs when the Image has many Stars. It seems for me that Gimp would “push” the Stars brighter so the Image looks brighter in Gimp that it really is.
But when I Resample the Picture, everything is OK.

I hope there are any Ideas for this Problem.

Thanks for reading.

Scaling in non-linear modes is problematic, this is not specific to Gimp.
I’d try working in linear mode. I don’t know how that affects Gimp’s scaling for the display, though. It’s worth a try.

Thanks for your reply,

When i Change to Linear mode and export the Image, the problem is bigger, the Image more darker:

Don’t export in linear mode.

The darkness is due to your viewers not being colour managed, or encoding metadata missing from the output file, so the viewers don’t realise the image has no transfer function (‘gamma’) applied. Linear output is rarely the best option for storage, but it can be very useful for processing.

The issue with linear vs non-linear processing is that when you zoom out, e.g, to 50%, a group of two black (0) two white pixels (255) could be averaged to 128 in linear mode, but such a simple calculation does not work if the values are not linear. But again, it was just a suggestion, I don’t know if using linear encoding while editing influences how Gimp does the maths for zooming in the display.

I have stored a Example File on a Server for download and testing:

https://www.muchelndorf-observatory.net/astroscotty/Gimp-Test.xcf
(55MB)

So if anyone has i Idea how to get the Image out of Gimp in the same Colors, that would be great.

Thanks for helping !

1 Like

Im sorry, maybe I misunderstood. If looking at Gimp and in Irfanview at 100%, do they look the same? Yet another way: does brightness seem to change when you zoom in/out in Gimp or in Irfanview?

I’m pretty sure it’s the linear vs non-linear pixel maths issue.

The Behaviour i have to explain:

When i open the File in Gimp al Full size and zoom to 100% and export the Result, is the view the same than in Irfanview at 100%.

But when i zoom in Gimp back to eb. 15% and zoom in Irfanview too to 15% the Irfanview gets darker.

When i Resample in Gimp that the Picture fits to Screen and export this picture, the view in irfanview is the same.

It seems that Gimp has a different resample algorithmus that irfanview, and this is the Problem. In big Images i work often not at 100% to “Compose” the Picture Colours.

The example File i have posted above, you can test by your self.

I hope there is a chance to solve this problem, maybe in Preferences a Option to choose the View Zoom algorithmus ?

Browsers may not be able to show these images correctly. You may have to download and view them in a viewer at 100%.

What happens in Irfanview if you zoom out on this image to 50% and 25%?

Gimp on-screen zoom
50%:


25%:

Gimp rescaling, at 100% view
50%:

25%:

So, Gimp’s on-screen ‘zoom’ is not reliable, its rescaling is.

I do not have Irfanview, can you test it?

More test images and explanation:

https://www.ericbrasseur.org/gamma.html

‘Getting it out’ (exporting) is not the problem. The problem is that Gimp’s zoomed-out display does not use linear calculations, and distorts brightness and colour information. On continuous images, that’s hardly noticeable, but when you have a lot of bright and lot of dark pixels mixed (such as the starry sky), it becomes evident.

Here Irfanview 100%

Irfanview 50% zoom:

Irfanview 25% zoom

grafik

Irfanview 50% resample

Irfanview 50% resample

grafik

Gimp 50%:

Siril 50%

OK, it seems that Gimp does it better than the other Programs ?

It would seem so, at least when processing the image. Unfortunately, its zoom on the screen is not correct (see the Gimp 50% zoom vs 50% resampling images), you still get brightness differences – what you see on the screen is not how it will look when properly downscaled.