Incorrect gamma color correction from svg to jpg

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
wdydev
Posts: 1
Joined: 2019-01-20T01:15:49-07:00
Authentication code: 1152

Incorrect gamma color correction from svg to jpg

Post 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
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Incorrect gamma color correction from svg to jpg

Post 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.
snibgo's IM pages: im.snibgo.com
Post Reply