title: Dimension Preserving JPEG to EPS Conversion
body: <p>I am looking for the best way to convert my JPEG files into EPS. I have to convert my image files to EPS to insert into my LaTeX files. Note that I am using dvipdfm to compile my LaTeX file into PDF and I am not using pdflatex.</p>
  
  <p>The problem is that the actual size of the image changes under the conversion to EPS. Therefore, I have to use the "scale" option of the "includegraphics" command in LaTeX to get the image scale to its actual size. I have tried <a href="http://www.gimp.org/" rel="nofollow noreferrer">Gimp</a>, <a href="http://www.pdflib.com/download/free-software/jpeg2ps/" rel="nofollow noreferrer">Jpeg2ps</a> and <a href="http://www.imagemagick.org/script/convert.php" rel="nofollow noreferrer">ImageMagick Convert</a> to convert my JPEG files into EPS files. However, each of these converters produces an EPS file whose actual size is different from the actual size of the original JPEG file.</p>
  
  <p>I'd like to know if anyone knows of a way to convert JPEG files to EPS files which preserves the original dimensions of the image. Such a dimension-preserving converter would relieve us from scaling the image in the LaTeX file manually.</p>
  
  <p>My LaTeX file (include-image.tex) is the following:</p>
  
  <pre><code>\documentclass{article}
  \usepackage[dvipdfm]{graphicx}
  \begin{document}
  \begin{figure}
  \includegraphics{image.eps}
  \end{figure}
  \end{document}
  </code></pre>
  
  <p>And, I use the following Makefile to produce the pdf:</p>
  
  <pre><code>include-image.pdf: include-image.dvi
          dvipdfm include-image.dvi
  include-image.dvi: include-image.tex
          latex include-image.tex
  </code></pre>