Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
100x100+0+0 seems correct to me. Have you tried changing the svg element's width, height, and viewBox attributes to different values to see what happens?
GreenKoopa wrote:100x100+0+0 seems correct to me. Have you tried changing the svg element's width, height, and viewBox attributes to different values to see what happens?
Note, I can get a different result by setting -density.
GreenKoopa wrote:My understanding is that SVG images don't inherently have a size. So you could either try a width and height of 100px instead of 100% or
And it seems correct. But as for the percentage, why I got 1x1? When we use percentage in the svg tag, it will return a viewport with specified percentage of parent container. In this case, does it mean that the default page size is different so we get different result? Or is it a bug...
Did you try -geometry to specify the "parent container" size. I believe IM determines size by using -geometry, else svg width and height if specified in pixels, else viewBox. Since your SVG file doesn't specify a size, there isn't really a correct answer. I would agree that 1x1 is an awful default. Are you using an older version of IM?