Merge branch 'master' into dev

This commit is contained in:
Malin Freeborn 2021-02-11 00:42:08 +01:00
commit 2f8e9ead8f

View File

@ -48,16 +48,24 @@ The 'fuzz' option tells the computer that 'close to white' is fine. You might w
# Mass convert # Mass convert
This script converts all jpg and png files in a directory to svg. This script converts all jpg files in a directory to svg.
``` ```
for i in *png *jpg for i in *jpg
do for j in *$i do convert "$i" $(ls "$i" | sed s#jpg\$#svg#)
do convert $j -resize 2048 $(ls $j | sed s#.$i\$#.svg#)
done
done done
``` ```
# SVG
The above script has crappy results.
It's better to use potrace.
```
$convert input.jpg output.ppm
$potrace -s output.ppm -o svgout.svg
```
# Writing Words # Writing Words
[docs](https://www.imagemagick.org/Usage/text/) [docs](https://www.imagemagick.org/Usage/text/)