Tag: 画像処理
SVGからPNG(JPEG,GIF)へ変換する。 convert input.svg -resize 1600x1600 output.png
svg -> png の変換は cairosvg ってやつを使えばできるらしい。
- on Windows, you’ll have to install Visual C++ compiler for Python and Cairo;
Svglib is a pure-Python library for reading SVG files and converting them (to a reasonable degree) to other formats using the ReportLab Open Source toolkit.
注意点としては、大きい辺を元に正方形にするので、加工は別にする必要があるでしょう。