Hi,
I am writing a document in LaTeX and want to import some illustrations. The illustrations are jpeg images and the current quality of the images (when looking at the final generated PDF file) is not that well. I was wondering if it makes a difference when I convert the images from JPEG (The original image is JPEG) to eps.
Any other ways to improve image quality are more then welcome as well
Greetings,
Arno Krol
General ⇒ JPEG images in LaTeX
NEW: TikZ book now 40% off at Amazon.com for a short time.

- tripwire45
- Posts: 129
- Joined: Thu Apr 10, 2008 4:35 am
JPEG images in LaTeX
Do you have the following in the preamble of your document?
The documents I maintain for PDF contain loads of .png files and they all render fine. I tried using eps graphics, but they looked terrible.
-Trip
Code: Select all
\usepackage[pdftex]{color,graphicx}
-Trip
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
JPEG images in LaTeX
This is not a good idea, since the graphicx package detects on its own which compiler is running hence it doesn't need any driver option and will search the right file by itself. Using the xcolor package allows a more comfortable handling of colours.tripwire45 wrote:Do you have the following in the preamble of your document?[...]Code: Select all
\usepackage[pdftex]{color,graphicx}
Code: Select all
\usepackage{graphicx}
\usepackage{xcolor}
You have to be more precise. Perhaps a screen shot could help. For the present, you should scale your graphics files to three quarters of their original size.arn1980 wrote:[...] The illustrations are jpeg images and the current quality of the images (when looking at the final generated PDF file) is not that well. [...]
Code: Select all
\includegraphics[scale=0.75]{foo}
Of course it makes a difference. JPG is a pixel based format (bitmap), whereas EPS is vector based. JPG is supposed to be a format for photos. With EPS you can produce high quality diagrams with no loss of quality when scaled. So, if your graphics are originated in a pixel based format, keep it.arn1980 wrote:[...] I was wondering if it makes a difference when I convert the images from JPEG (The original image is JPEG) to eps. [...]
[1] PostScript Point to Pixels (X) Conversion Calculator
Best regards and welcome aboard
Thorsten
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
- tripwire45
- Posts: 129
- Joined: Thu Apr 10, 2008 4:35 am
Re: JPEG images in LaTeX
I stand corrected, Thorsten. Thanks.