Document ClassesProblems converting jpg and bmp to PostScript

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
checha
Posts: 4
Joined: Wed Sep 05, 2007 11:13 pm

Problems converting jpg and bmp to PostScript

Post by checha »

I have a lot of graphics to include in a document in a bmp or jpg format, is there a way to include this kind of graphics or do I need a program to convert them to eps? What program do you recomend? Thanks

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Problems converting jpg and bmp to PostScript

Post by localghost »

That depends on your compiling route. latex only accepts files in PS/EPS format, whereas pdflatex allows to use JPG, PNG or PDF format. When compiling with pdflatex, you can keep your files in JPG format. Otherwise you have to convert them. For conversion there exist many good tools. On the one side there is the command line tool ImageMagick. It is easy to handle and converts many formats. On the other side there is GIMP, a very powerful picture editing software similar to Photoshop that also offers an export function to EPS.
User avatar
pumpkinegan
Posts: 91
Joined: Thu May 03, 2007 10:29 pm

Re: Problems converting jpg and bmp to PostScript

Post by pumpkinegan »

Another alternative that I often use is OpenOffice Draw. I just insert the jpg/png file and export as an eps. It is useful from time to time, but it would be laborious if you have many jpg/png/bmp files.

I would recommend not to convert to eps, and just compile with pdfLaTeX. Since you have raster images, there is no benefit to converting to a vector image.
checha
Posts: 4
Joined: Wed Sep 05, 2007 11:13 pm

Re: Problems converting jpg and bmp to PostScript

Post by checha »

Thanks for the advise, I'll try jpg with PDFLatex
checha
Posts: 4
Joined: Wed Sep 05, 2007 11:13 pm

Problems converting jpg and bmp to PostScript

Post by checha »

localghost wrote: That depends on your compiling route. latex only accepts files in PS/EPS format, whereas pdflatex allows to use JPG, PNG or PDF format. When compiling with pdflatex, you can keep your files in JPG format. Otherwise you have to convert them. For conversion there exist many good tools. On the one side there is the command line tool ImageMagick. It is easy to handle and converts many formats. On the other side there is GIMP, a very powerful picture editing software similar to Photoshop that also offers an export function to EPS.



I download imagemagick, I open the jpg file but cannot convert it to ps/eps
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Problems converting jpg and bmp to PostScript

Post by localghost »

checha wrote: I download imagemagick, I open the jpg file but cannot convert it to ps/eps

What does "open" mean in this case? Depending on your OS, open a command prompt or shell and convert the graphics file as follows.

Code: Select all

convert picture.jpg picture.eps
Post Reply