Graphics, Figures & TablesForce Image Resolution

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
BinaryBen6
Posts: 3
Joined: Wed Apr 03, 2013 7:55 pm

Force Image Resolution

Post by BinaryBen6 »

How can I force the image resolution?

For example, I've been trying to force the image resolution to a very low value, but it doesn't seem to be working (i.e., a very pixeled 10 dpi or less). Setting \pdfpxdimen, but it doesn't seem to make any difference. :(

Code: Select all

\documentclass[12pt]{article}
\usepackage{graphicx}

\begin{document}

% tried this
%\pdfpxdimen=10in % 1 DPI
%\divide\pdfpxdimen by 3 % 0 % 96 DPI

\pdfpxdimen=\dimexpr 1in/3\relax

\includegraphics[height=1.4in]{matrix_operation}

\end{document}

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

tommytex
Posts: 39
Joined: Wed Jan 23, 2013 10:04 pm

Force Image Resolution

Post by tommytex »

hi :)

i had a similar problem a view weeks ago. To me it seemed like it was best to change the resolution of the files before including them into my LaTeX file. As I am working on a Linux based OS this was no problem using ImageMagick (see also here).

Happy coding.


Tommy :mrgreen:
Post Reply