Magick++ is an object-oriented C++ interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning Magick++.
- Posts: 20
- Joined: 2012-10-08T13:42:11-07:00
- Authentication code: 67789
I want to be able to create a Magick::Image instance from an SVG file, rendered to a certain size. I can render SVGs to different sizes from the command line using something like
Code: Select all
convert -density x infile.svg outfile.png
and tinkering with x until I get the desired size, but I can't seem to be able to do this in code. I can rasterize to the svg's "native" size, but not to a desired size. Note that I want to get the best achievable quality so doing any resizing after rasterization is out of the question. Does anyone know how this is done?