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

English Edit question
Inkscape Edit question
No assignee Edit question
Solved by:
Yuka Omi
Last query:
Last reply:
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.


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.


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).


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.
How do I know which colour is the correct one?


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.