Files @ 3bf6e1ddc87c
Branch filter:

Location: C3L/Artwork/convert.sh - annotation

Dennis Fink
Updated entr0py encore posters, so that they use the entr0py encore logo
#!/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 -f "$i" -e "$new_png_filename" -C -w 1920 -h 1080
    elif [[ "$1" =~ "Videos" ]]; then
        mkdir -p $(dirname ${new_png_filename})
        inkscape -f "$i" -e "$new_png_filename" -C -w 1920 -h 1080
    else
        mkdir -p $(dirname ${new_pdf_filename}) $(dirname ${new_plain_svg_filename}) $(dirname ${new_png_filename}) $(dirname ${new_eps_filename})
        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" --export-text-to-path --vacuum-defs
        inkscape -f "$i" -e "$new_png_filename" -C -d 1200
        inkscape -f "$i" -E "$new_eps_filename" -C -d 1200
    fi
done