Conversion of SVG image to PNG with text that includes an & adds extra space around ampersand

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
hairykid
Posts: 10
Joined: 2019-03-12T08:30:40-07:00
Authentication code: 1152

Conversion of SVG image to PNG with text that includes an & adds extra space around ampersand

Post by hairykid » 2019-05-16T06:59:56-07:00

OS: Ubuntu 18.10
Version: ImageMagick 6.9.10-42 Q16 x86_64
Issue also exists on - V 7.0.8-45

The command being run is -

convert msvg:/var/www/mydomain.co.uk/sites/default/files/tmp/preview-526369564-x3Sup6 png:/var/www/mydomain.co.uk/sites/default/files/preview/1818709664-1558014451.png

To replicate issue -

The svg image used is here - https://ufile.io/4795n0ye

The converted png is here - https://ufile.io/x7poxki3

As can be seen, there is extra white-space around the ampersand.

Thanks for any help with this

Post Reply