title: Error including image in Latex
body: <p>I am getting the following error while compiling my Latex File :</p>
  
  <p><strong>! LaTeX Error: Cannot determine size of graphic in tree.jpg (no BoundingBox).</strong></p>
  
  <p>Why do I get this error ? What has this to do with an .eps file ?</p>
  
  <p>In fact, I could compile it fine with MacTex on my machine. But when I submit it online to a scientific journal for publication, it compiles it on the server and sends me the resultant PDF which has all these errors that prevent it from compiling.</p>
  
  <p>I am using the following syntax for including the images :</p>
  
  <pre><code>\begin{figure}[!h]
      \begin{center}
          \scalebox{0.45}{
              \includegraphics{tree.jpg}}
      \end{center}
              \caption{\small A sample}
              \label{tree}
  \end{figure}
  </code></pre>
  
  <p>What should I do ? Could it be that their server is using an old compiler ?</p>
  
  <p><strong>UPDATE :</strong> It finally worked. I converted the first image to PDF and the compilation happened perfectly. I guess it used the bounding box value from that PDF and applied it to all images. </p>