Generalgif, tiff, png, jpeg conversion to EPS

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
maurolust
Posts: 13
Joined: Fri May 02, 2008 8:58 pm

gif, tiff, png, jpeg conversion to EPS

Post by maurolust »

Hello.

Sometimes it becomes necessary to include figures that were not generated in EPS. My first choice is to use powerpoint or impress to insert or create the picture in an empty slide, print to ps and then use ghostscript to set the bounding box correctly and make an eps file, or maybe even edit the bounding box manually in the eps header.

The problem I often face is that figures created in this manner are placed with the background in front of the document. Therefore I often see a white background from my figure blocking some text nearby. I can't edit the eps file to fix that (I'm not that savvy). Is there a better (and simple) way to convert images from other file types to eps? Is GIMP a better choice to do that? I try using it but get lost in between all of its functionalities. Maybe a tutorial on handling background?

Thanks
LaTeX itself handles the presentation of the document, allowing the writer to concentrate on the \textbf{conten...
!Runaway argument?
\par
<inserted text>
... concentrate on the \textbf{content}}

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

phi
Posts: 577
Joined: Tue Oct 21, 2008 8:10 pm

gif, tiff, png, jpeg conversion to EPS

Post by phi »

Hello,

which is the source format of the pictures? In your subject, you say something about "gif, tiff, png, jpeg"—these could be converted without PowerPoint or Impress. Is there a special reason why you want to use PowerPoint or Impress? If not, try ImageMagick's convert program. Or use pdfLaTeX, which can include JPEG and PNG images directly.
maurolust
Posts: 13
Joined: Fri May 02, 2008 8:58 pm

Re: gif, tiff, png, jpeg conversion to EPS

Post by maurolust »

In this particular case it is a gif image. I want to keep using eps because it is a predefined template I'm using that requires the files to be eps. I was using impress/powerpoint because it's what I have at hand and it's a fairly simple process (and I have learned it that way) although not effective sometimes. I'll try imagemagick, see if it's practical.

Thanks
LaTeX itself handles the presentation of the document, allowing the writer to concentrate on the \textbf{conten...
!Runaway argument?
\par
<inserted text>
... concentrate on the \textbf{content}}
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

gif, tiff, png, jpeg conversion to EPS

Post by localghost »

maurolust wrote:[...] I want to keep using eps because it is a predefined template I'm using that requires the files to be eps. [...]
I wonder what this prerequisites could be that all graphics file have to be in EPS. Perhaps you can describe that a little bit. If this template doesn't use packages like PSTricks, which rely directly on postscript code, it is not necessary to compile exclusively with latex. Compilation then also can be done with pdflatex and images in PNG or JPG format can be kept in their original format..


Best regards and welcome to the board
Thorsten¹
barcense
Posts: 10
Joined: Sun Jun 10, 2007 2:16 pm

gif, tiff, png, jpeg conversion to EPS

Post by barcense »

maurolust wrote:My first choice is to use powerpoint or impress to insert or create the picture in an empty slide, print to ps and then use ghostscript to set the bounding box correctly and make an eps file, or maybe even edit the bounding box manually in the eps header.
You can use one vector graphics editor, My best choice is http://www.inkscape.org/
maurolust
Posts: 13
Joined: Fri May 02, 2008 8:58 pm

gif, tiff, png, jpeg conversion to EPS

Post by maurolust »

Well, I think I solved the problem with imagemagick convert program.
Now, the reason for it was the CV template I was using. I have tried to use jpeg other times, and failed. So instead of trying to make it work with other formats I decided to keep it "simple" by always using eps.
Image
those icons are added by this command

Code: Select all

\newcommand{\interest}[2]{
\includegraphics[height=12pt]{#1}
~\raisebox{1mm}{#2}}
like this

Code: Select all

\begin{interestsblock}{Interests \& Activities}
    \interest{gear}{Network coding, routing, network security, satellite communications}\\
	\interest{book}{Novels, biographies, economics, property rights, science, technology and history} &
	\interest{itf_cropped}{Taekwon-Do}
\end{interestsblock}
And I wanted to create my own icons.


Maybe it is a good idea to check how to use other formats.

cv template kindly offered by http://n.favrefelix.free.fr/site/
LaTeX itself handles the presentation of the document, allowing the writer to concentrate on the \textbf{conten...
!Runaway argument?
\par
<inserted text>
... concentrate on the \textbf{content}}
Post Reply