Convert SVG to transparent PNG with antialiasing, using ImageMagick

后端 未结 8 898
耶瑟儿~
耶瑟儿~ 2020-12-07 13:06

I want to convert SVG images to PNG files with transparent background and anti-aliased edges (using semi-transparent pixels). Unfortunately I can\'t get ImageMagick to do th

8条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-07 13:41

    For me that works for svg to png:

    convert ${src} -transparent white -background none  -resize 345x345 res/drawable-xxxhdpi/${dest}
    

提交回复
热议问题