Skip to content

Instantly share code, notes, and snippets.

@ravnoor
Last active January 31, 2016 23:39
Show Gist options
  • Save ravnoor/ca06d2541882b23a8554 to your computer and use it in GitHub Desktop.
Save ravnoor/ca06d2541882b23a8554 to your computer and use it in GitHub Desktop.
Convert EPS to TIFF with LZW compression
#!/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