colour is changing when I export to png

Asked by Yuka Omi on 2018-01-21

When I exported the objects which has deep blue colour to png, the deep blue became to deep purple. When I save the file with svg, the blue colour is exact same as I filled the coulor, but when I save it with png, the colour is changed.(Just blue)
How can I stop this thing happen??

Question information

Language:
English Edit question
Status:
Solved
For:
Inkscape Edit question
Assignee:
No assignee Edit question
Solved by:
Yuka Omi
Solved:
2018-01-24
Last query:
2018-01-24
Last reply:
2018-01-24
TylerDurden (8thrule) said : #1

Please upload an example svg file and the resulting png file to a sharing service like dropbox or google drive, and share a link(s) to the files for examination.

TD

TylerDurden (8thrule) said : #3

I placed both the png and svg files in a single file to compare. I find no difference. The colors are identical.

Perhaps some other software you use handles svg and png files differently.

Attached are links to a screenshot of the comparison, and the svg file with both images together.

https://www.dropbox.com/s/vjm11b1ura6srsn/CompareScreeshot.png?dl=0
https://www.dropbox.com/s/t7ah5u1gno1tcz4/Compare.svg?dl=0

TD

TylerDurden (8thrule) said : #4

I should also mention in the comparison, I filled half the rectangle with the blue from the png, and half with the blue from the svg (divided on the diagonal).

TD

Yuka Omi (bell-chako) said : #5

Thank you for being so helpful. You are right, the colour depends on the viewing software I use.
Inkscape, GIMP, Imagemagic and Libreoffice all show the blue I expected for both svg and png.
Chromium displays both svg and png in the more purple colour.
Gnome Image Viewer shows svg in blue but png in purple. The link below is bmp screen grab of these two Image Viewer images side by side.
https://www.dropbox.com/s/mjdcquvdma456t3/Blue%20Purple%20logo%20side%20by%20side.bmp?dl=0
How do I know which colour is the correct one?

Yuka

TylerDurden (8thrule) said : #6

I honestly don't know if there is really a "correct" one... different renderers can produce different colors.

Color management profiles may also be a complicating factor. Those are outside my ability to help.

Yuka Omi (bell-chako) said : #7

Thank you very much your help.

Yuka