SVG thumbnailing not scaling

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
immewnity
Posts: 12
Joined: 2011-05-14T14:25:03-07:00
Authentication code: 8675308

SVG thumbnailing not scaling

Post 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.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: SVG thumbnailing not scaling

Post 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.
immewnity
Posts: 12
Joined: 2011-05-14T14:25:03-07:00
Authentication code: 8675308

Re: SVG thumbnailing not scaling

Post by immewnity »

That worked! I ended up putting the density to the width amount to keep ideal pixel density.
Post Reply