Discussion:
convert no longer respects -density?
Norman Walsh
2009-09-20 13:07:22 UTC
Permalink
Hello all,

Until recently, I've been using

convert --density=150 something.svg something.png

to convert SVG files to PNG at 150dpi. After some recent upgrade, I'm
afraid I can't recall exactly which, this stopped working.

$ convert --version
Version: ImageMagick 6.5.6-1 2009-09-16 Q16 OpenMP http://www.imagemagick.org
Copyright: Copyright (C) 1999-2009 ImageMagick Studio LLC

Convert seems to ignore the density setting entirely and always
produces a 72dpi PNG file.

I'm running the MacPorts version of ImageMagic; initially, I imagined
that this was some sort of configuration bug:

https://trac.macports.org/ticket/21420

But they've suggested that I should report the bug upstream.
Suggestions or comments, most welcome.

Be seeing you,
norm
--
Norman Walsh <***@nwalsh.com> | All the labors of the ages, all the
http://nwalsh.com/ | devotion, all the inspiration, all the
| noonday brightness of human genius, are
| destined to extinction.--Bertrand
| Russell
d***@imagemagick.org
2009-09-20 14:26:11 UTC
Permalink
Post by Norman Walsh
Convert seems to ignore the density setting entirely and always
We have

-> convert -verbose skew.svg skew.png
skew.svg SVG 400x120 400x120+0+0 16-bit DirectClass 1.47kb
skew.svg=>skew.png SVG 400x120 400x120+0+0 16-bit DirectClass 12kb

Now at 150DPI we get

-> convert -verbose -density 150 skew.svg skew.png
skew.svg SVG 833x249 833x249+0+0 16-bit DirectClass 1.47kb
skew.svg=>skew.png SVG 833x249 833x249+0+0 16-bit DirectClass 36kb

as expected. Does your version of ImageMagick include support for the RSVG
delegate library?

-> identify -list format

Format Module Mode Description
-----------------------------------------------------------------------------
A* RAW rw+ Raw alpha samples
...
SVG SVG rw+ Scalable Vector Graphics (RSVG 2.26.0)
SVGZ SVG rw+ Compressed Scalable Vector Graphics (RSVG 2.26.0)
...
Ryan Schmidt
2009-09-21 00:19:00 UTC
Permalink
On Sep 20, 2009, at 09:26,
Post by d***@imagemagick.org
Does your version of ImageMagick include support for the RSVG
delegate library?
To get that in MacPorts, you would have to build ImageMagick with the
+rsvg variant.

Continue reading on narkive:
Loading...