Menu

#22 SVG to PNG conversion

v1.0_(example)
closed
None
5
2016-04-23
2015-07-14
Anth Winter
No

I am using version 1.3.19 of GM and trying to convert an SVG to a PNG with the following command:

gm convert -background "#ffffffff" triangle.svg triangle.png

This is successful, but it is leaving a white border around the actual image.

If i use the following command:

gm convert -background none triangle.svg triangle.png

it leaves a black border around the image.

Is there any way I can convert SVG to PNG without having a bordered image.

1 Attachments

Discussion

  • Bob Friesenhahn

    Bob Friesenhahn - 2016-04-23
    • status: open --> closed
    • assigned_to: Bob Friesenhahn
     
  • Bob Friesenhahn

    Bob Friesenhahn - 2016-04-23

    Sorry no one responded.

    The solution is do do:

    gm convert -background transparent triangle.svg triangle.png
    
     

Log in to post a comment.