I have a usage questions which are too arcane for the normal user list. Hence I post in this section. In my point of view, convert.exe has a bug in the coordinate system for transform vector graphic to pixel graphic. But maybe the developer see this differently. For a normal user the behaviour is not relevant.
I want a SVG (vector graphic) image convert to a PNG (pixel graphic) image. In the SVG image the unit is always px (pixel). The output to the PNG image must be 1:1 without antialias:
convert.exe +antialias input.svg output.png
This produce a unexpected result. Example: A SVG rectangle
Code: Select all
<rect
x="0"
y="0"
width="1"
height="1"
style="fill:#000000;fill-opacity:1;stroke:none;
id="rect2170"
/>
Code: Select all
<rect
x="-0.5"
y="-0.5"
width="1"
height="1"
style="fill:#000000;fill-opacity:1;stroke:none;
id="rect2170"
/>
I have try to use
convert.exe +antialias input.svg -distort SRT '0,0 1 0 -0.5, -0.5' output.png
This bring the error message: unrecognized option `-distort'. I use imagemagick 6.3.4-q8 (Windows XP binary). Why this? Is distort SRT a solution for my problem or work this only from pixel image to pixel image?
If no user solution available, I would be happy, if some developer can help me, to make a source code patch.
Many thanks in advance
Bernd