question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Opening and re saving a png image changes the color of the image

See original GitHub issue

Prerequisites

  • I have written a descriptive issue title
  • I have verified that I am using the latest version of Magick.NET
  • I have searched open and closed issues to ensure it has not already been reported

Description

When I open a png image and save it to a new location it changes color: Magick color change As far as I have gathered it is only happening with pngs. They look the same if I open them with photoshop, but the colors are wrong in Windows and Chrome.

Steps to Reproduce

using (var image = new MagickImage(originalPath)) { image.Write(newPath); }

System Configuration

  • Magick.NET version: Magick.NET-Q16-AnyCPU_7.11.1
  • Environment (Operating system, version and so on): Windows 10
  • Additional information: .net core

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
urban-warriorcommented, Mar 29, 2019

It appears our PNG coder maintainer, who is no longer with us, wanted to identify linear RGB images so that ImageMagick can support both linear (RGB) and non-linear (sRGB) images in the PNG format. The test appears to be incorrect. A patch to fix it is in GIT master branch @ https://github.com/ImageMagick/ImageMagick. The patch will be available in the beta releases of ImageMagick @ https://www.imagemagick.org/download/beta/ by sometime tomorrow.

0reactions
Unavicommented, Mar 26, 2019

Magick Should have used 0.50994 for gamma.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Re: PNG Images Are Inverted Colors When Opening Sa... - ...
While saving, when the "Include linked files " option is selected and then reopened, the Ai file images get inverted, or yellow color...
Read more >
Color changes when saving from PSD to png
If I open old png files in Photoshop, I see that the Document profile is always set in Abobe RGB (1998) but now...
Read more >
Image colors changed after saving with PIL - python
1 Answer. It's because you're saving your image as JPEG, which by default is going to have various options enabled that will alter...
Read more >
adobe photoshop - Colors changed when uploaded as png
I just figured out a part of the problem: The png only become darker when upload when I export the png using the...
Read more >
How to Fix Color Change when Exporting & Saving ... - YouTube
If you are experiencing a color change or color shift after exporting and saving in Photoshop, then you need to adjust the color...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found