Document Classes ⇒ Problems converting jpg and bmp to PostScript
Problems converting jpg and bmp to PostScript
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
NEW: TikZ book now 40% off at Amazon.com for a short time.
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Problems converting jpg and bmp to PostScript
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.
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
- pumpkinegan
- Posts: 91
- Joined: Thu May 03, 2007 10:29 pm
Re: Problems converting jpg and bmp to PostScript
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.
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.
Re: Problems converting jpg and bmp to PostScript
Thanks for the advise, I'll try jpg with PDFLatex
Problems converting jpg and bmp to PostScript
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
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Problems converting jpg and bmp to PostScript
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
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10