To convert among pictures file extension

first install \framebox{
\texttt{
\textcolor{red}{\bf sudo apt-get install imagemagick}
}
}

  1. from jpg to eps
    \framebox{
\texttt{
\textcolor{red}{\bf convert fig.jpg eps2:fig.eps}
}
}

  2. from png to eps
    \framebox{
\texttt{
\textcolor{red}{\bf convert fig.png eps3:fig.eps}
}
}

  3. from jpeg to png
    \framebox{
\texttt{
\textcolor{red}{\bf convert fig.jpeg fig.png}
}
}

  4. from pdf to eps (strange but true!!)
    \framebox{
\texttt{
\textcolor{red}{\bf gs -dNOPAUSE -dNOCACHE -dBATCH -sDEVICE=epswrite -sOutputFile=FileNameYouWant.eps FileNameOriFigure.pdf}
}
}

    do not use the same name for the eps file that you will create and the original pdf file



Webmaster: Christian E. Salas Eljatib, E-mail: christian.salas@yale.edu