Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I use pdflatex to compile the following input file:

\documentclass{article}
\usepackage{graphicx}
\begin{document}
\fbox{\includegraphics[viewport=10 10 20 20]{bald.png}}
\end{document}

The image to be imported is:

enter image description here

But the resulting PDF looks very strange as follows:

enter image description here

Note: the gray frame is Adobe Reader background, it is not the part of PDF output.

share|improve this question

2 Answers 2

up vote 3 down vote accepted

you'd forgotten to clip

\fbox{\includegraphics[viewport=10 10 20 20,clip]{bald.png}}
share|improve this answer

Looks quite normal. You are setting a small viewport, so for latex the graphic is only 10x10pt large. The rest of the graphics "sticks" out. Use clip if you want to see the part set by viewport.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.