Last active
January 31, 2016 23:39
-
-
Save ravnoor/ca06d2541882b23a8554 to your computer and use it in GitHub Desktop.
Convert EPS to TIFF with LZW compression
This file contains hidden or 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 | |
# Convert EPS to TIFF using GraphicsMagick | |
DIR="$( pwd )" | |
`unalias gm` # gm is aliased to gitmerge in OSX 10.11.3 with Homebrew | |
find "$DIR" -iname "*.eps" | sed 's/^.\///g' | while read EPS | |
do | |
echo "converting to TIFF ($i)" | |
TIFF=`echo "$EPS" | sed "s/.eps$/.tiff/"` | |
`gm convert -density 300 -compress LZW "$EPS" "$TIFF"` | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment