Changeset - 21fa024e6e64
[Not reviewed]
default
0 1 0
Dennis Fink - 6 years ago 2019-03-24 20:30:20
dennis.fink@c3l.lu
Only convert file in specified directory
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
convert.sh
Show inline comments
 
#!/bin/bash
 

	
 
for i in $(find Logos/SVG Flags/SVG -type f -not -name "Laurel_Wreath.svg"); do
 
for i in $(find $1/SVG -type f -not -name "Laurel_Wreath.svg"); do
 
    new_pdf_filename=$(echo $i | sed 's/svg/pdf/g' | sed 's/SVG/PDF/g')
 
    new_plain_svg_filename=$(echo $i | sed 's/SVG/PLAIN_SVG/g')
 
    new_png_filename=$(echo $i | sed 's/svg/png/g' | sed 's/SVG/PNG/g')
 
    inkscape -f "$i" -A "$new_pdf_filename" -T --export-pdf-version=1.5 -C -d 1200
 
    inkscape -f "$i" --export-plain-svg="$new_plain_svg_filename" -T
 
    inkscape -f "$i" -e "$new_png_filename" -C -d 1200
 
done
0 comments (0 inline, 0 general)