Changeset - 6871c87be61c
[Not reviewed]
default
0 1 6
Dennis Fink - 4 years ago 2021-01-31 17:13:48
dennis.fink@c3l.lu
Convert waysigns
7 files changed with 4 insertions and 0 deletions:
0 comments (0 inline, 0 general)
Events/Press_Conferences/Waysigns/PDF/Arrow_Left.pdf
Show inline comments
 
new file 100644
 
binary diff not shown
Events/Press_Conferences/Waysigns/PDF/Arrow_Right.pdf
Show inline comments
 
new file 100644
 
binary diff not shown
Events/Press_Conferences/Waysigns/PDF/Arrow_Up.pdf
Show inline comments
 
new file 100644
 
binary diff not shown
Events/Press_Conferences/Waysigns/PNG/Arrow_Left.png
Show inline comments
 
new file 100644
 
binary diff not shown
Show images
Events/Press_Conferences/Waysigns/PNG/Arrow_Right.png
Show inline comments
 
new file 100644
 
binary diff not shown
Show images
Events/Press_Conferences/Waysigns/PNG/Arrow_Up.png
Show inline comments
 
new file 100644
 
binary diff not shown
Show images
convert.sh
Show inline comments
 
#!/bin/bash
 

	
 
for i in $(find $1/SVG -type f -not -name "Laurel_Wreath.svg" -not -iname "QRCode.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')
 
    new_eps_filename=$(echo $i | sed 's/svg/eps/g' | sed 's/SVG/EPS/g')
 
    
 
    if [[ "$1" =~ "entr0py" ]]; then
 
        mkdir -p $(dirname ${new_png_filename})
 
        inkscape --export-type=png --export-filename="$new_png_filename" --export-area-page --export-width=1920 --export-height=1080 "$i"
 
    elif [[ "$1" =~ "Videos" ]]; then
 
        mkdir -p $(dirname ${new_png_filename})
 
        inkscape --export-type=png --export-filename="$new_png_filename" --export-area-page --export-width=1920 --export-height=1080 "$i"
 
    elif [[ "$1" =~ "Waysigns" ]]; then
 
        mkdir -p $(dirname ${new_png_filename}) $(dirname ${new_pdf_filename})
 
        inkscape --export-type=pdf --export-filename="$new_pdf_filename" --export-area-page --export-dpi=1200 --export-text-to-path --export-pdf-version=1.5 "$i"
 
        inkscape --export-type=png --export-filename="$new_png_filename" --export-area-page --export-dpi=1200 "$i"
 
    else
 
        mkdir -p $(dirname ${new_pdf_filename}) $(dirname ${new_plain_svg_filename}) $(dirname ${new_png_filename}) $(dirname ${new_eps_filename})
 
        inkscape --export-type=pdf --export-filename="$new_pdf_filename" --export-area-page --export-dpi=1200 --export-text-to-path --export-pdf-version=1.5 "$i"
 
        inkscape --export-type=png --export-filename="$new_png_filename" --export-area-page --export-dpi=1200 "$i"
 
        inkscape --export-type=eps --export-filename="$new_eps_filename" --export-area-page --export-dpi=1200 "$i"
 
        inkscape --export-plain-svg --export-filename="$new_plain_svg_filename" --export-text-to-path --vacuum-defs "$i"
 
    fi
 
done
0 comments (0 inline, 0 general)