I inserted a picture in LaTeX, but it rotated my picture. Why?
\documentclass{article}
\usepackage{graphicx}
\begin{document}
\begin{figure}
\includegraphics[width=0.5\textwidth]{1.jpg}
\end{figure}
\end{document}
All the files are here:files
I inserted a picture in LaTeX, but it rotated my picture. Why?
\documentclass{article}
\usepackage{graphicx}
\begin{document}
\begin{figure}
\includegraphics[width=0.5\textwidth]{1.jpg}
\end{figure}
\end{document}
All the files are here:files
The meta data of your image contains the tag "orientation" with the value "rotate 90 CW". This value is obeyed by most image viewers, but, as it seems, not LaTeX. Your best approach is probably to rotate that image yourself, as you have found out.
It seems to depend on the jpg-File. When I save your foto as png without applying any rotation to it using Paint.net, it seems to be as expected.
\documentclass{article}
\usepackage{graphicx}
\begin{document}
\begin{figure}
\includegraphics[scale=0.05]{1.jpg}
\caption{The jpg-image}
\end{figure}
% --- saving the jpg as png with Paint.net
\begin{figure}
\includegraphics[scale=0.05]{1b}
\caption{The png-image}
\end{figure}
\end{document}
P.S.: According to comments and answer I tried this site http://exif.regex.info/exif.cgi, which provides the Exif-tool online, to read out metadata contained in your photo 1.jpg, see screenshot.
As you can see, it's a pretty long list, which dependes on the photo, AND it sets the flag to "Rotate 90 CW". In contrast this flag is missing in the png I created.
BTW: I now know your smartphone model, when and where you took the photo etc. ... you just shared it.
\includegraphics[angle=270,width=\textwidth]
. But it is a little trouble.