graphicx and use \includegraphics{...}. Add width or height to resize it, and use trim=left bottom right top,clip to crop unwanted margins.
Quick answer: add
\usepackage{graphicx} to the preamble, then write \includegraphics[width=0.8\textwidth]{image-file}. To crop, use \includegraphics[trim=1cm 2cm 1cm 2cm,clip]{image-file}. The trim values are always ordered left, bottom, right, top.Related topics: Figure positioning | Tabular environment | Package managementCommon image tasks
Quick Start
quick-image.tex
Ready to use this syntax? Continue in the browser editor when you want to adapt the example in a real project.Open LaTeX Cloud Studio
Trim and crop images with includegraphics
The trim option removes material from the four edges. Its order is left, bottom, right, top—not the clockwise order that many users expect. Add clip; without it, LaTeX changes the image’s bounding box but can still draw the trimmed material.
trim-image.tex
Expected output
The PDF shows the cropped image at 80% of the text width. The first example removes material from all four sides; the second removes only the top 12 mm.
width to the cropped result. Use units such as cm, mm, pt, or bp; four bare numbers are interpreted differently depending on the graphics driver and are easier to misread.
Basic Image Insertion
Simple Image Include
basic-image.tex
Supported Image Formats
*EPS requires additional configuration
Scaling Images
Width and Height Control
scaling-images.tex
Common Width References
width-references.tex
Figure Environment
Basic Figure
figure-environment.tex
Figure Placement Options
*Requires
\usepackage{float}
figure-placement.tex
Multiple Images
Side by Side Images
side-by-side.tex
Grid of Images
image-grid.tex
Image Transformations
Rotation and Flipping
transformations.tex
Advanced Techniques
Wrapping Text Around Images
wrap-text.tex
Image Paths
image-paths.tex
Draft Mode
draft-mode.tex
Image Formats and Conversion
Working with Different Formats
format-handling.tex
Best Practices
Troubleshooting
For path-specific compiler messages, see image and path errors.
Quick Reference
Essential Commands
Figure Template
example.tex
Next: Master Figure positioning to control exactly where your images appear, or learn about Creating tables for structured data presentation. To compile these figure examples without a local TeX installation, see the online LaTeX editor.
