View Single Post
Old 02-08-2014, 07:56 AM   #4
SBT
Fanatic
SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.
 
SBT's Avatar
 
Posts: 580
Karma: 810184
Join Date: Sep 2010
Location: Norway
Device: prs-t1, tablet, Nook Simple, assorted kindles, iPad
Here's an alternative to inkscape for command-line fanatics, using imagemagick and potrace:
Code:
convert <image> pnm:- |potrace -s -o <out>.svg
To trim empty space around image:
Code:
convert <image> -trim pnm:- |potrace -s -o <out>.svg
To shrink svg file size:
Code:
convert <image> -trim pnm:- |potrace -s -O 1 -u 1 -o <out>.svg
Further image size reduction can be achieved by using imagemagick to downscale the image. You can also use it to adjust the black/white cut-off with the -level option
SBT is offline   Reply With Quote