# HG changeset patch # User Dennis Fink # Date 2020-04-04 22:04:04 # Node ID 21daec3b56424ffe25a22b38ff8aa0b7c5d50de8 # Parent b0e7e71f7da1c4858af0a66de1df415499a26c89 Only export png for entr0py diff --git a/convert.sh b/convert.sh --- a/convert.sh +++ b/convert.sh @@ -6,8 +6,13 @@ for i in $(find $1/SVG -type f -not -nam 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') 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 + + if [[ "$1" =~ "entr0py" ]]; then + inkscape -f "$i" -e "$new_png_filename" -C -w 1920 -h 1080 + else + 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