Skip to content

Instantly share code, notes, and snippets.

@autocorr
Created August 17, 2023 19:24
Show Gist options
  • Save autocorr/625eb300a8b863b712b89fec2e1b3d33 to your computer and use it in GitHub Desktop.
Save autocorr/625eb300a8b863b712b89fec2e1b3d33 to your computer and use it in GitHub Desktop.
Rotate a set of SVGs by 180 degrees using Inkscape.
#!/bin/bash
for input_file in *.svg
do
stem="${input_file%%.*}"
outname="${stem}_r"
inkscape --actions "select-all;transform-rotate:180;export-filename:${outname}.svg;export-do" $input_file
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment