General ⇒ JPEG images in LaTeX
JPEG images in LaTeX
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
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- tripwire45
- Posts: 129
- Joined: Thu Apr 10, 2008 4:35 am
JPEG images in LaTeX
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
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
- tripwire45
- Posts: 129
- Joined: Thu Apr 10, 2008 4:35 am