Skip to content

Instantly share code, notes, and snippets.

@manuelmorales
Created September 22, 2011 10:10
Show Gist options
  • Save manuelmorales/1234463 to your computer and use it in GitHub Desktop.
Save manuelmorales/1234463 to your computer and use it in GitHub Desktop.
EPS to PNG with ImageMagick
export BASE_DENSITY=72
export DESIRED_RESOLUTION=1600
export TARGET_DENSITY=$(identify -density $BASE_DENSITY -format "%[fx:min($BASE_DENSITY*$DESIRED_RESOLUTION/w*2,$BASE_DENSITY*$DESIRED_RESOLUTION/h*2)]" IllustratorEPSfile.eps)
convert -density $TARGET_DENSITY -channel rgba -alpha on -colorspace rgb -scale 50% IllustratorEPSfile.eps IllustratorEPSfile.png
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment