Opening and re saving a png image changes the color of the image
See original GitHub issuePrerequisites
- 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: 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:
- Created 4 years ago
- Comments:10 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
Should have used 0.50994 for gamma.