![convert imag to 128x128 convert imag to 128x128](https://i.ytimg.com/vi/fxFPhw04yXs/maxresdefault.jpg)
If that is the case, then only the density would change. Perhaps there is something in the file that specifies the images size. So it would look like the image size is not changing by changing the density, which is what I thought happens with vector to raster conversion. Testing.Ĭonvert -density 288 googly-fitocracy.svg googly-fitocracy2.png Your old image is not 360x360 pixels, but larger by 2x, so you must have used a larger density, namely 288x288. If you need 288 pixels per inch, then convert 288 to 288*2.54=732Ĭonvert -density 732 -units pixelspercentimeter -background none googly-fitocracy.svg googly-fitocracy.png Though you probably should set the units to pixelspercentimeter (as that is all png supports as far as I know). What version of IM are you using?Ĭonvert -density 288 -background none googly-fitocracy.svg googly-fitocracy.png Works fine for me with IM 6.7.7.0 Q16 Mac OSX Snow Leopard. Other than density, is there any option to make the SVG larger, prior to being converted to png? I added a 500x500 SVG in the mix and the result is perfect, a 128x128 png image, crisp and clear.īut these 48x48 are not working. Ultimately, I need to make the SVG bigger, before it's converted to PNG to prevent pixelation. I believe this is because the -density 500 or whatever, is failing to work. However, if I -resize 128x128 I end up with a pixelated 128x128 png image. Regardless of the density set, I end up with a 48x48 png, which is pixel perfect. However, since recompiling with RSVG, the gradients are now perfect but the SVG density isn't increased. The density of the SVG was increased and the resulting png was perfect. I had a pack of icons, that I ran the command on, it converted them all perfectly, minus the gradients. But when working with complex gradients, the result was terrible. Previously, I was using Imagemagick without the RSVG option. The fact the output is always 48x48 regardless of the density set. Version were you using previously that gave you the result you How are you determining that the density is not working? What