Page 1 of 1

SVG thumbnailing not scaling

Posted: 2011-05-15T14:10:12-07:00
by immewnity
Hi,

I'm trying to thumbnail SVG to PNG for my wiki, and the thumbnail command seems to be breaking the process; the SVG will not upscale. This is with version 6.6.9-6. More details can be found on the support board here and at MediaWiki Users.

Re: SVG thumbnailing not scaling

Posted: 2011-05-15T16:03:37-07:00
by magick
Assume you want a high quality thumbnail of Pikachu_-_Dream_World @ 100x100 pixels. This works for us with ImageMagick 6.6.9-9, the current release:
  • convert -density 400 Pikachu_-_Dream_World.svg -thumbnail 100x100 Pikachu_-_Dream_World.png
For optimal results, make sure you have RSVG support. Type
  • identify -list format
and hopefully you get
  • SVG SVG rw+ Scalable Vector Graphics (RSVG 2.32.1)
If you instead have built-in SVG support, add the RSVG and RSVG development RPM's to your system. Now build and install ImageMagick from source.

Re: SVG thumbnailing not scaling

Posted: 2011-05-15T16:37:08-07:00
by immewnity
That worked! I ended up putting the density to the width amount to keep ideal pixel density.