Created
September 11, 2014 19:44
-
-
Save benfavre/e3d8a9e0504ede270039 to your computer and use it in GitHub Desktop.
Batch EPS to PNG with colorspace conversion croping and centering
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
for f in *.eps; do echo "Converting $f"; convert -colorspace sRGB $f -density 300 -quality 100% -colorspace rgb -flatten -resize 1200x1000^ -gravity center -crop 1200x1000+0+0 /var/www/suivisalades/public/media/images-produits/png/"$(basename "$f" .eps).png"; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment