Skip to content

Instantly share code, notes, and snippets.

@ischurov
Last active May 22, 2022 13:45
Show Gist options
  • Save ischurov/cfe07d85fcb9d4dd4f9bb5c934a533ca to your computer and use it in GitHub Desktop.
Save ischurov/cfe07d85fcb9d4dd4f9bb5c934a533ca to your computer and use it in GitHub Desktop.
Clip SVG (fit page to contents) with CLI using inkscape 1.2
#!/bin/bash
inkscape -g --actions="page-fit-to-selection; export-filename: $1; export-margin: 30; export-do; quit-immediate" $1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment