bindiego
5/11/2016 - 3:01 PM

use imagemagik to convert image to svg

use imagemagik to convert image to svg

#!/usr/bin/env bash

###
# convert an image file to svg, png in this sample
### Prerequisite
# http://www.imagemagick.org/script/index.php

for f in `ls *.png`
do
  fname=`echo $f | cut -d '.' -f 1`
  target="${fname}.svg"

  convert $f $target
done