Files
@ 4e9941c7e0f0
Branch filter:
Location: C3L/Artwork/convert.sh - annotation
4e9941c7e0f0
3.4 KiB
text/x-sh
Add Simple Lion Acronym Rollup
81ed238d2406 81ed238d2406 534b2cc7a1f5 534b2cc7a1f5 534b2cc7a1f5 534b2cc7a1f5 534b2cc7a1f5 21daec3b5642 534b2cc7a1f5 534b2cc7a1f5 534b2cc7a1f5 534b2cc7a1f5 534b2cc7a1f5 534b2cc7a1f5 21daec3b5642 29a2710ff229 b027cef6f66e b027cef6f66e b027cef6f66e b027cef6f66e b027cef6f66e 895de5003d8e 29a2710ff229 348c23558411 6871c87be61c 29a2710ff229 6871c87be61c 6871c87be61c 27d5a68f453d 29a2710ff229 27d5a68f453d 27d5a68f453d 27d5a68f453d 27d5a68f453d 27d5a68f453d 27d5a68f453d 27d5a68f453d d27ae67d97f0 d27ae67d97f0 d27ae67d97f0 d27ae67d97f0 d27ae67d97f0 d27ae67d97f0 d27ae67d97f0 21daec3b5642 29a2710ff229 348c23558411 348c23558411 348c23558411 348c23558411 21daec3b5642 78e6d5615f1f | #!/bin/bash
while IFS= read -r -d '' i; do
new_plain_svg_filename="${i/SVG/PLAIN_SVG}"
new_pdf_filename="${i/SVG/PDF}"
new_pdf_filename="${new_pdf_filename/svg/pdf}"
new_png_filename="${i/SVG/PNG}"
new_png_filename="${new_png_filename/svg/png}"
new_eps_filename="${i/SVG/EPS}"
new_eps_filename="${new_eps_filename/svg/eps}"
if [[ "$1" =~ "entr0py" ]]; then
mkdir -p "$(dirname "${new_png_filename}")"
if [[ "$1" =~ "Logo" ]]; then
inkscape --export-type=png --export-filename="$new_png_filename" --export-area-page --export-width=1400 --export-height=1400 "$i"
else
inkscape --export-type=png --export-filename="$new_png_filename" --export-area-page --export-width=1920 --export-height=1080 "$i"
fi
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"
elif [[ "$1" =~ "Wallpapers" ]]; then
mkdir -p "$(dirname "${new_png_filename}")"
extension="${new_png_filename##*.}"
filename="${new_png_filename%.*}"
inkscape --export-type=png --export-filename="${filename}_1920.${extension}" --export-area-page --export-width=1920 "$i"
inkscape --export-type=png --export-filename="${filename}_3200.${extension}" --export-area-page --export-width=3200 "$i"
inkscape --export-type=png --export-filename="${filename}_3840.${extension}" --export-area-page --export-width=3840 "$i"
elif [[ "$1" =~ "Banners" ]]; then
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=450 "$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"
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 < <(find "$1/SVG" -type f -not -name "Laurel_Wreath.svg" -not -iname "QRCode.svg" -not -iname "blanco.svg" -print0)
|