| #!/bin/bash |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| function svg { |
| |
| |
| |
| local EXPORTID='CENTOSARTWORK' |
| |
| |
| ${RENDER_BACKEND}_checkModelExportId "$INSTANCE" "$EXPORTID" |
| |
| |
| |
| |
| |
| |
| |
| ${RENDER_BACKEND}_checkModelAbsref "$INSTANCE" |
| |
| |
| local INKSCAPE_OUTPUT="$(\ |
| inkscape $INSTANCE --export-id=$EXPORTID --export-png=${FILE}.png)" |
| |
| |
| |
| cli_printMessage "$(echo "$INKSCAPE_OUTPUT" | egrep '^Area' \ |
| | sed -r "s!^Area!`gettext "Area"`:!")" |
| cli_printMessage "$(echo "$INKSCAPE_OUTPUT" | egrep '^Background' \ |
| | sed -r "s!^Background (RRGGBBAA):(.*)!`gettext "Background"`: \1 \2!")" |
| cli_printMessage "$(echo "$INKSCAPE_OUTPUT" | egrep '^Bitmap saved as' \ |
| | sed -r "s!^Bitmap saved as:!`gettext "Saved as"`:!")" |
| |
| # Perform backend post-rendition. |
| ${RENDER_BACKEND}_doPostActions |
| |
| # Perform backend last-rendition. |
| ${RENDER_BACKEND}_doLastActions |
| |
| } |
| |