Skip to content

Instantly share code, notes, and snippets.

@dettmering
Created November 9, 2012 12:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dettmering/4045386 to your computer and use it in GitHub Desktop.
Save dettmering/4045386 to your computer and use it in GitHub Desktop.
Shell: Recalculate bounding box of EPS files
#!/bin/bash
# This script recalculates all bounding boxes of all eps files in the same folder
# requires epstool
for f in *.eps
do
g=$(echo $f | sed 's/\(.*\)\..*/\1/')
echo Processing $f ...
epstool --copy --bbox $g.eps $g-new.eps
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment