[Pkg-gmagick-im-team] Bug#793982: imagemagick: Nested <SVG> tag: wrong rendering - wrong positioning

Gabriele Motta gabriele.JUSTOneDotHere.motta at gmail.com
Wed Jul 29 15:41:38 UTC 2015


Package: imagemagick
Version: 8:6.9.1.2-1
Severity: normal



-- Package-specific info:
ImageMagick program version
---------------------------
animate:  ImageMagick 6.8.9-9 Q16 x86_64 2015-01-05 http://www.imagemagick.org
compare:  ImageMagick 6.8.9-9 Q16 x86_64 2015-01-05 http://www.imagemagick.org
convert:  ImageMagick 6.8.9-9 Q16 x86_64 2015-01-05 http://www.imagemagick.org
composite:  ImageMagick 6.8.9-9 Q16 x86_64 2015-01-05 http://www.imagemagick.org
conjure:  ImageMagick 6.8.9-9 Q16 x86_64 2015-01-05 http://www.imagemagick.org
display:  ImageMagick 6.8.9-9 Q16 x86_64 2015-01-05 http://www.imagemagick.org
identify:  ImageMagick 6.8.9-9 Q16 x86_64 2015-01-05 http://www.imagemagick.org
import:  ImageMagick 6.8.9-9 Q16 x86_64 2015-01-05 http://www.imagemagick.org
mogrify:  ImageMagick 6.8.9-9 Q16 x86_64 2015-01-05 http://www.imagemagick.org
montage:  ImageMagick 6.8.9-9 Q16 x86_64 2015-01-05 http://www.imagemagick.org
stream:  ImageMagick 6.8.9-9 Q16 x86_64 2015-01-05 http://www.imagemagick.org

-- System Information:
Debian Release: 8.1
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Init: systemd (via /run/systemd/system)

Versions of packages imagemagick depends on:
ii  imagemagick-6.q16  8:6.9.1.2-1

imagemagick recommends no packages.

imagemagick suggests no packages.

-- no debconf information


1. Let's have an svg A nested into another svg file B.svg

2. Convert B into another format - let's say png- using Imagick

3. A positioning is not correct, and it's close to the upper left side of the main svg.

4. As you increase the size of the main svg, its position after conversion is moved in the upper left side, more and more, until it's not processed and not shown in the converted file B.png


I have another server, (Debian 7 and Imagick 3.1.0RC1, Version: ImageMagick 6.7.7-10 2014-03-08 Q16), and it works like a sharm.

It follows an example of a wrong rendered SVG:

<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//Dtd SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/Dtd/svg11.dtd">
<svg width="200px" height="100px" id="MAIN_SVG" version="1.1" xmlns="http://www.w3.org/2000/svg">


 <rect x='0px' y='0px' width='100px' height='100px' fill='black'/>

                                <svg transform=""  x="100px" y="0px" id="NESTED_SVG" height="100px" width="100px">

                                        <desc>    Imagemagick doesn't render this embedded (nested) SVG   </desc>

                                        <rect x='0px' y='0px' width='100px' height='100px' fill='red' />


                                </svg>

</svg>

I expect the svg with tag "NESTED_SVG" (a red square) should be positioned 100px from the left.

This is the result in my old server mentioned above (debian 7). In a brief on the old server it works.

On the other side with this server and the enviroment explained at the beginning of this report, the "NESTED_SVG" is positioned at -25px, i.e. the WRONG position.



More information about the Pkg-gmagick-im-team mailing list