I'm using a mac and looking to batch convert a large amount of eps files and create jpg previews of each. I'm looking for preferably a command-line utility, or some type of workflow to easily batch a large number of files.
Thanks for any ideas or input
On OS X, you can use sips to perform image processing tasks, like thumbnailing. It should support EPS. If it doesn't, as Adam recommended there is ImageMagick's convert
.
Like codelogic mentioned, sips
is a good tool for this. However, it doesn't support EPS natively, so you need to convert to PDF first.
If you're on Tiger or Leopard, something like the following should work:
mkdir pdf jpg
cd pdf
echo ../eps/*.eps | xargs -n1 pstopdf
cd ..
sips -s format jpeg *.pdf --out jpg/
Assuming your EPS files are in the current directory, this will first convert them all to pdf, storing them in the pdf/ directory, then convert each PDF to a JPEG file in the jpg/ directory.
ImageMagick should be exactly what you're looking for. Once you have it installed, just use the convert
utility:
convert file.eps -resize 25% preview.jpg # create jpg thumbnail at 25% size
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With