TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I use pdflatex to compile the following input file:

\fbox{\includegraphics[viewport=10 10 20 20]{bald.png}}

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
up vote 5 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


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.