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

Say I have an image my_image.png that I am loading in my LaTeX document using:


Is there a way of telling LaTeX to only render a specific rectangular portion (in percentages) of the original image?

For example, say I want to just render a cropped image:

  • Trim 5% of the original image width from the left
  • Trim 10% of the original image width from the right
  • Trim 15% of the original image height from the top
  • Trim 20% of the original image height from the bottom
share|improve this question
have a look at the package adjustbox with the option export. – Marco Daniel Apr 20 '12 at 14:10
up vote 27 down vote accepted


\adjustbox{trim={.05\width} {.2\height} {0.1\width} {.15\height},clip}%


Since \includegraphics produces no depth, you can use the fact that \adjustbox knows the \width and the \height of the image.

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.