Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Convert .jpg to .eps format [closed]

Tags:

linux

jpeg

eps

How can I convert multiple .jpg files to .eps files on Linux?

like image 401
Bhavneet Avatar asked Mar 18 '11 09:03

Bhavneet


People also ask

Can I convert a JPEG to an .EPS file?

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.

Why can't I open a EPS file?

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.

How do I save an image as an EPS file?

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.


2 Answers

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.

like image 129
user1958943 Avatar answered Sep 23 '22 14:09

user1958943


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.

like image 22
Daniel Böhmer Avatar answered Sep 22 '22 14:09

Daniel Böhmer