Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I use convert filename.gif filename.eps to produce EPS from images before include them into TeX document, and get error:

! LaTeX Error: Cannot determine size of graphic in filename.eps (no BoundingBox).

Environment: OpenSUSE 11.3 and oficial versions of texlive-latex and ImageMagick.

share|improve this question
    
Hey Sannis, and welcome! Just a few pointers: We usually don't post "answers" posed as "questions", as the platform is not suitable for a forum-like discussion or a wiki, but rather functions as pure Q&A. If you have a specific question, we'd be more than happy to help. In the meantime, take a look at the FAQ: tex.stackexchange.com/faq to get some idea how TeX.SE works. Welcome again, and enjoy your stay! –  Martin Tapankov Dec 10 '10 at 7:34
    
I don't get this problem. If you do, maybe you have an old version of ImageMagick? Mine also lets me specify .eps as an extension. –  Harald Hanche-Olsen Dec 10 '10 at 7:35
    
@Harald: The problem seems to be when one is using graphics vs graphicx. I remember seeing this issue before, but I'm a bit fuzzy on the details. –  Martin Tapankov Dec 10 '10 at 7:53
3  
I suppose there may be occasions where an unsolicited answer like this may be welcome. But then, it is better if the poster states the question as a question, then posts an answer to it immediately. It fits the overall structure of the site better, and besides it has the benefit that the answer won't be listed from now on until eternity as an unanswered question. In fact, I call on Sannis to do so: Just copy the bulk of your question into an answer box, submit as an answer, then go back and change the question. –  Harald Hanche-Olsen Dec 10 '10 at 8:42
    
I agree with Martin and Harald's sentiments. There's nothing particularly wrong with using this place to share tips like this (though please don't flood the site with them all in one go!), but they should conform to the style of the site as a question-and-answer. This will ensure that they are found correctly when someone is searching for them. –  Loop Space Dec 10 '10 at 9:09
show 3 more comments

2 Answers

up vote 9 down vote accepted

I use this little trick to solve this problem:

$> convert filename.gif filename.ps
$> ps2eps -f --fixps filename.ps
share|improve this answer
    
I am a little confused - this doesn't appear at all to have been a tip! it was clearly a question about why a certain procedure resulted in an error message with an implied question about how one might fix it. People who are really comfortable with UNIX/Linux manuals tend not to be so good in understanding language understood by the rest of us. But it is a little odd because the standard UNIX/Linux manuals tend to leave an awful lot of detail out, so one might think that the usual suspects would be better able to read between the lines than the average non UNIX/Linux manual reader. –  user12911 Mar 24 '12 at 14:21
2  
@drtcbear As I understand it, the suggestion here is that convert will not get the bounding box correct if you go straight from .gif to .eps. So the work-around is to use convert to make a PostScript (.ps) file, then use ps2eps to convert this intermediate file to .eps format. Unlike convert, ps2eps should get the bounding box information right. –  Joseph Wright Mar 25 '12 at 8:33
    
Don't know what drtcbear was talking about, this was the perfect solution for me, thanks. –  notfed Jun 7 '12 at 4:17
add comment

Not totaly related but an awnser to the question: I've had the same problem but it was caused by the fact that the name and the folder had a "dot" in the name thats why the pdflatex compiler couldnt find it.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.