Created
November 9, 2012 12:07
-
-
Save dettmering/4045386 to your computer and use it in GitHub Desktop.
Shell: Recalculate bounding box of EPS files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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