How can I convert multiple .jpg files to .eps files on Linux?
Open JPG file with Adobe Photoshop. Go to File>Save as. Then choose EPS as the output and click Save. In the EPS option panel, configure the settings per your needs and click OK to export JPG as EPS in Adobe Photoshop.
Layout applications, such as PageMaker, Quark, or Microsoft Word, will only be able to place an EPS file, not open it. EPS is a format that is available to both Mac and PC users. If you have trouble opening it, you may have to select a program for the image to open.
You can also use Adobe Photoshop to export to EPS. Click “File,” “Save As” and select “Photoshop EPS.” Select the desired export options, such as creating a preview image, changing the file encoding or modifying color options. Click “OK” to export.
When using the ImageMagick's convert, it is a good practice to use the eps2 format. This make the resulting eps file much smaller because it uses the JPEG compression algorithm (DCT).
So, to convert a.jpg
to a.eps
do:
convert a.jpg eps2:a.eps
This of course, can be used in a shell script, to convert multiple JPG to EPS.
You can use many tools. I recommend using convert
command from ImageMagick.
#!/bin/bash
# example 1
convert myfile.jpg myfile.eps
# example 2
for file in file1.jpg file2.jpg file3.jpg; do
echo convert "$file" $(echo "$file" | sed 's/\.jpg$/\.eps/')
done
To make example 2 run you need to remove the echo
inside the for
-loop. Make sure the commands it outputs are correct before removing it.
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