jpg 图像颠倒了

jpg 图像颠倒了

我正在使用以下数据来整理我的论文:

\documentclass[12, twoside]{report}
\usepackage{textcomp}
\usepackage{graphicx}
\usepackage[a4paper,margin=1in]{geometry}
\begin{document}
\graphicspath{{./Figures/}}

\begin{figure}[htbp]
\includegraphics[width=\textwidth]{Figure1.pdf}
\caption[short]{\textbf{Cancer incidences of different age groups in Canada for 2010.} For both men and women, the five cancer types with the highest incidence rates of new primary cancer were plotted. This figure shows that incidence rates increase with age, indicating that cancer requires decades to progress in adults. \textit{Data: CANSIM table 103-0550, Statistics Canada. Accessed: April 4th, 2015}}
\end{figure}

\clearpage
\begin{figure}[htbp]
\includegraphics[width=\textwidth]{Figure2.png}
\caption{\textbf{Canadian women breast cancer estimates.} It is expected that approximately 1/9 women will be diagnosed with breast cancer during her lifetime, and 1/30 will die from it. \textit{Source: Canadian Cancer Society's 2009 estimates.}}
\end{figure}

\clearpage
\begin{figure}[htbp]
\includegraphics[width=\textwidth]{Figure3.pdf}
\caption{\textbf{Log-log plots of cancer mortality rates in Canada for 2010.} This figures shows that cancer overall requires at least six steps for both men and women (A,B). Additionally, the mathematical modelling of the influence and fluctuating estrogen levels on breast cancer is consistent with the epidemiological data (C). Colon cancer in women is used as control because it is hormonally independent (D). \textit{Data: CANSIM tables 051-0522 and 102-0522, Statistics Canada. Accessed: April 4th, 2015}}
\end{figure}

\clearpage
\begin{figure}[htbp]
\includegraphics[width=\textwidth]{Ur.pdf}
\caption[short]{\textbf{Ziggurat of Ur.} This Ziggurat was built during the 21st century BC by the neo-Sumerians in the city (now ruins) of Ur, Irak in honor of their moon God, Nanna (A). It originally
had three main levels, but only two now remain (B). Several restoration efforts have been carried out. The sketch was drawn by British archaeologist Sir Leonard Woolley who excavated Ur in the 1920s. Interestingly, he proposed that Ur was Ur of Chaldees, the birthplace of the biblical patriarch Abraham (Genesis 11:31). While hoping to uncover Abraham's home, Woolley famously found the Ur's royal cemetery that included ~2000 burials. \textit{Source: http://oracc.museum.upenn.edu/amgg/listofdeities/nannasuen/, http://www.penn.museum/press-releases/650-iraqs-ancient-past-press-release.html, Bible. Accessed: May 11th, 2015}}
\end{figure}

\clearpage
\begin{figure}[htbp]
\includegraphics[width=\textwidth]{boxplots.pdf}
\caption[short]{\textbf{Identification of Arm-level and Focal Events of Claudin-low tumors in METABRIC}}
\end{figure}


\begin{figure}[htbp]
\includegraphics[width=\textwidth]{rawCopy.jpg}
\caption[short]{\textbf{Raw copy number of claudin-low tumors}}
\end{figure}

\end{document}

以下是 jpg 图像:

在此处输入图片描述

但是jpg图片是反转的,不知道为什么...

在此处输入图片描述

我将非常感谢社区的反馈。谢谢!

编辑:

在此处输入图片描述

答案1

现在,对于 OP 来说可能已经太晚了。但是我最近在尝试水平翻转图像时找到了一个解决方案。未来的访问者可能会发现它很有用 :-D [解决方案是结合了两个想法的结果这里这里]

代码如下:

\documentclass{article}
\usepackage{tikz,subcaption}
\usetikzlibrary{positioning}

\begin{document}
% Vertical flip
\begin{figure}
   \begin{subfigure}[b]{.5\textwidth}
     \begin{tikzpicture}
         \node[scale=0.4] (a)
         { \scalebox{1}[1]{\includegraphics[scale=1]{example-image-a}} };
     \end{tikzpicture}
     \caption{}
   \end{subfigure}
   \begin{subfigure}[b]{.5\textwidth}
     \begin{tikzpicture}
         \node[scale=0.4] (a)
         { \scalebox{1}[-1]{\includegraphics[scale=1]{example-image-a}} };  
      \end{tikzpicture}
      \caption{}
   \end{subfigure}
\caption{Vertical flip of .jpg or .pdf files}
\end{figure}
% Horizontal flip
\begin{figure}
   \begin{subfigure}[b]{.5\textwidth}
      \begin{tikzpicture}
          \node[scale=0.4] (a)
          { \scalebox{1}[1]{\includegraphics[scale=1]{example-image-b}} };
      \end{tikzpicture}
      \caption{}
    \end{subfigure}
    \begin{subfigure}[b]{.5\textwidth}
      \begin{tikzpicture}
         \node[scale=0.4] (a)
         { \scalebox{-1}[1]{\includegraphics[scale=1]{example-image-b}} };  
      \end{tikzpicture}
    \caption{}
  \end{subfigure}
\caption{Horizontal flip of .jpg or .pdf files}
\end{figure}
\end{document}

输出如下:

输出

答案2

我刚刚遇到了类似的问题。对我来说,问题是 jpg 文件中的 EXIF 数据。

基本上,图像以其他方向保存,并带有一个标志,指示图像查看器对其进行旋转。最好以这种方式旋转图像,因为每次文件旋转变换都会降低质量。

最好的解决方案是让 latex 使用此标志。最简单的方法 - 只需覆盖图像。

我使用 Pinta 和 GIMP 进行了检查 - 两者都将其保存为正确旋转的图像,没有 EXIF“旋转”信息。在 Pinta 中,您必须使用save as选项。当我使用 GIMP 打开图像时,我收到这样的消息:

According to the EXIF data, this image is rotated. 
Would you like GIMP to rotate it into the standard orientation?

选择旋转然后file > overwrite

答案3

我遇到了同样的问题,并且能够通过在 imageJ(它是一个免费的图像处理程序)上打开文件并将其重新保存为 jpg 或任何您想要使用的格式来解决它。

相关内容