이미지를 SVG 파일로 변환(윈도우 명령행)
- windows command line image file convert to SVG file converter
ImageMagick
https://imagemagick.org
- 지원 포맷 : WebP, AVIF, HEIC, SVG, PDF, DPX, EXR ... 등 200개 이상
https://imagemagick.org/script/formats.php#supported
- 변환 명령
> magick.exe input.png output.svg
//-------------------------------------
* 투명배경 유지하려면 inkscape 사용
> inkscape input.png --export-filename=output.svg
- magick 이 svg -> png 변환시 투명배경 유지가 안되는 경우 inkscape 사용
> inkscape input.svg --export-filename=output.png
//-------------------------------------
용량 비교 (byte)
PNG : 1,965,758
SVG : 2,657,131 (- 가장 큼)
JPG : 455,283
WEBP : 282,788
HEIC : 302,994
AVIF : 218,295
//-------------------------------------
참고
> "C:\Program Files\ImageMagick-7.1.0-Q16\magick.exe" d:\terrace.png d:\terrace.svg
> ffmpeg -i d:\terrace.png d:\terrace.webp