Tables & Figures
How to Resize Images in LaTeX
LaTeX provides several ways to control image dimensions while optionally preserving aspect ratio.
Set Width
Common approach—set width and let height scale:
\includegraphics[width=10cm]{image.png}
\includegraphics[width=0.5\textwidth]{image.png}
\includegraphics[width=\linewidth]{image.png}Set Height
Set height instead of width:
\includegraphics[height=5cm]{image.png}
\includegraphics[height=0.3\textheight]{image.png}Set Both (May Distort)
Set both dimensions (can distort image):
\includegraphics[width=5cm, height=3cm]{image.png}
% Keep aspect ratio:
\includegraphics[width=5cm, height=3cm, keepaspectratio]{image.png}Scale Factor
Scale by a factor:
\includegraphics[scale=0.5]{image.png} % 50% of original
\includegraphics[scale=1.5]{image.png} % 150% of original💡 Tips
- •Use keepaspectratio when setting both width and height
- •0.8\textwidth is a good default for most figures
- •For side-by-side images, use 0.45\textwidth each
Try This in Bibby AI
Write LaTeX faster with AI auto-complete and instant compilation.
Start Writing Free