To add a photo to a LaTeX CV, load the graphicx package and use \includegraphics with your image file. A common layout puts the photo beside your name in a minipage, so the header and the photo sit side by side. Check first whether the country and employer you are applying to expect a photo, because the norms differ.
Should your CV include a photo?
- Norms vary. In some countries a photo is customary on a CV. In others it is uncommon, and some employers ask applicants not to send one.
- Fairness concerns. A photo can let a reader judge a candidate on appearance, and some places have rules or guidance against it. For that reason, some employers ask applicants not to include one.
- When the posting says nothing. Follow what is normal for that country and field. If you are unsure, a CV without a photo is the safer default.
- Automated screening. Some applicant tracking systems read plain text more reliably than images, so a photo may add a risk at that stage.
Prepare the image
- Format. pdfLaTeX reads JPEG, PNG and PDF images directly. Convert other formats, such as HEIC or WebP, to JPEG or PNG first.
- Crop. A head-and-shoulders portrait with a plain background is a common choice.
- Size. Resize the image before you upload it, so the PDF stays a manageable size.
- File name. Use a simple name with no spaces, such as
photo.jpg, and put the file in the same folder as your.texfile. In Overleaf, upload it to the project’s root folder.
Include the image with graphicx
\documentclass[11pt,letterpaper]{article}
\usepackage[margin=0.75in]{geometry}
\usepackage{graphicx}
\pagestyle{empty}
\begin{document}
\includegraphics[width=3cm]{photo}
\end{document}
The width option sets the picture’s width, and the height follows the image’s proportions. To fix the height instead, use height= in place of width=. For more image options, see inserting images in LaTeX. You can leave off the file extension in {photo}, as long as only one file named photo is in the folder.
Put the photo beside your name
A minipage is a box of fixed width (see how to make a text box in LaTeX with minipage and parbox). Put the name and contact lines in one box and the photo in a second box, and LaTeX places the two side by side.
\documentclass[11pt,letterpaper]{article}
\usepackage[margin=0.75in]{geometry}
\usepackage[hidelinks]{hyperref}
\usepackage{graphicx}
\pagestyle{empty}
\setlength{\parindent}{0pt}
\begin{document}
\noindent
\begin{minipage}[c]{0.72\textwidth}
{\LARGE \textbf{Jane Doe}}\\[4pt]
Leeds, UK \\
\href{mailto:jane@example.com}{jane@example.com} \\
+00 000 000 0000
\end{minipage}%
\hfill
\begin{minipage}[c]{0.2\textwidth}
\includegraphics[width=\linewidth]{photo}
\end{minipage}
\section*{Education}
\textbf{BSc Computer Science}, Example University \hfill 2023--2027
\end{document}
[c] aligns the two boxes at their centres. The widths, 0.72\textwidth and 0.2\textwidth, leave a gap between them. The % after the first \end{minipage} stops a stray space from appearing, and width=\linewidth makes the picture fill its box. If the text and photo collide, reduce the first width. To change the photo’s size, change the second box’s width.
Using moderncv’s photo command
The moderncv class has a \photo command that places a picture in its header. The example below sets the height to 64 points and the frame thickness to 0.4 points. Check the moderncv manual for other options.
\documentclass[11pt,a4paper,sans]{moderncv}
\moderncvstyle{casual}
\moderncvcolor{blue}
\usepackage[scale=0.85]{geometry}
\name{Jane}{Doe}
\title{Computer Science Student}
\email{jane@example.com}
\photo[64pt][0.4pt]{photo}
\begin{document}
\makecvtitle
\section{Education}
\cventry{2023--2027}{BSc Computer Science}{Example University}{Leeds, UK}{}{Relevant modules: databases, algorithms, statistics.}
\end{document}
The \photo line goes in the preamble, before \makecvtitle, so the picture appears in the header. The file must sit in the project folder under the name you give it.
When the photo does not show
- File not found. LaTeX names the file it cannot find. Check the file name, the extension and the folder. Linux and Overleaf treat
Photo.jpgandphoto.jpgas different files. - Unsupported format. pdfLaTeX does not read HEIC or WebP files. Convert them to JPEG or PNG.
- The photo pushes text onto page two. Reduce the photo’s width or height, then check the page count again.
- Circular or styled crops. These need extra packages. A template that already does this is simpler than building it yourself.
For the rest of the header and section layout that the photo sits in, see the LaTeX CV guide.