Page 1 of 1

Incorrect gamma color correction from svg to jpg

Posted: 2019-01-20T01:20:53-07:00
by wdydev
IM with rsvg-convert produces image with blown out colors when converting an svg to jpg. I am using IM 7 with RSVG-CONVERT 2.42. Tested on windows 10, windows server, ubuntu 18.04, AWS linux box. Every platform produces same incorrect output. Here is a link to stackoverflow thread I just posted.
https://stackoverflow.com/questions/542 ... vg-convert

Re: Incorrect gamma color correction from svg to jpg

Posted: 2019-01-20T09:54:02-07:00
by snibgo
Experimentation suggests that RSVG is not correctly linearizing linked images before applying filters (SVG color-interpolation-filters="linearRGB"). Workarounds include:

1. Use Inkscape as the delegate. Simply ensure Inkscape is installed and on the system path. ImageMagick will then use it.

2. Or: Pre-process your images before rasterising the SVG.