Am Samstag, 28. Juni 2008 12:29:45 UTC+2 schrieb Stephen Chin: > > > P.S.: Since this is a Photoshop job, SVG output is not going to be > possible... sorry! > In case you guys wonder where the logo at https://github.com/piccolo2d comes from - it's from a pure SVG version of the well-known logos. It's not strictly 1:1 but IMO good enough. What do you think?
-- -- Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en --- You received this message because you are subscribed to the Google Groups "Piccolo2D Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
#!/bin/sh cd "$(dirname "$0")" # # http://stackoverflow.com/a/15072127 # inkscape=/Applications/Inkscape.app/Contents/Resources/bin/inkscape $inkscape --help >/dev/null 2>&1 || { echo "Inkscape is not installed." && exit 1; } optipng -help >/dev/null 2>&1 || { echo "optipng is not installed." && exit 1; } src="$(pwd)/Piccolo2D-Logo-dev.svg" dst_dir="$(pwd)/build" mkdir -p $dst_dir 2>/dev/null prefix=$dst_dir/Piccolo2D-Logo OPTS="--export-background=white --without-gui --export-area-page" # OPTS="$OPTS --export-id-only" dst=${prefix}-800x160.png $inkscape --export-width=800 --export-height=160 --export-png=$dst $OPTS --file="$src" dst=${prefix}-600x600.png $inkscape --export-width=600 --export-height=600 --export-area=7:-4:115:104 --export-png=$dst $OPTS --file="$src" optipng -o 7 "$dst_dir"/*.png # crate a clean, stripped down SVG dst=${prefix}.svg cp "$src" "$dst" # http://stackoverflow.com/a/10492912 $inkscape "$dst" \ --select=layer3 --verb=EditDelete \ --select=layer2 --verb=EditDelete \ --select=layer1 --verb=EditDelete \ --verb=FileVacuum --verb=FileSave \ --verb=FileClose --verb=FileQuit $inkscape --without-gui --vacuum-defs --export-plain-svg="$dst" --file="$dst"
