LoginSignup
1
1

More than 3 years have passed since last update.

Inkscape のコマンドラインでsvg を png にする

Posted at

概要

SVG を PNG にしたいときに、 svg2pngconvert などでうまくいけばよいが、
それらがなくて inkspace があるときの方法

結論

sample.svgsample.png にする。
サイズは、幅 128 高さ 128

オプションはこのようなかんじ。
詳しくは man inkscape

  • GUI なしで起動する -z
  • 出力ファイルを指定する -e, --export-png=FILENAME
  • 幅を指定 -w
  • 高さを指定 -h
inkscape -z -e sample.png -w 128 -h 128 sample.svg
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1