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

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

User avatar
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