Error Cannot Determine Size Of Graphic In No Boundingbox
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us TeX - LaTeX Questions Tags Users Badges Unanswered Ask Question _ TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top Cannot determine size of graphic up vote 76 down vote favorite 22 I'm trying to include graphics in my Latex-file, which I compiled with latex+dvipdf on OS X. Latex however returns this error: "Cannot determine size of graphic" My graphic is exported from PowerPoint, so I have tried both .pdf and .png. I get the same errors for both. Sample code that doesn't work: \begin{figure}[htb] \begin{center} \leavevmode \includegraphics[width=0.8\textwidth]{graph.png} \end{center} \end{figure} If I have to manually set some measurements of the image, please tell me how I can find out those measurements. I need the image to take up about 80% of text width and be centered. Thanks. graphics errors png share|improve this question edited Jan 22 '13 at 15:55 Martin Schröder 11k43194 asked May 8 '11 at 11:56 user5371 possible duplicate of: tex.stackexchange.com/questions/11193/… (untagged) –Ciro Santilli 烏坎事件2016六四事件 法轮功 Aug 15 '14 at 20:20 add a comment| 3 Answers 3 active oldest votes up vote 84 down vote accepted The DVI producing latex doesn't support reading the size of PNG, JPG or PDF images. You need to use pdflatex for this. Actually latex is pdflatex in DVI mode in modern distributions, but it can read the sizes only in PDF mode for some reason. You are however able to state the natural size of the images using natwidth and natheight which will make latex compile without error. The produced DVI file will only link to the PDF and the DVI-to-PDF converter will need to include it in the final PDF. AFAIK dvpdf doesn't support this but dvipdfm does. \documentclass{article} \usepackage{graphicx} \begin{document} \begin{figure} \centering \includegraphics[width=0.8\textwidth,natwidth=610,natheight=642]{tiger.pdf} \end{figure}
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us TeX - LaTeX Questions Tags Users Badges Unanswered Ask Question _ TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a http://tex.stackexchange.com/questions/17734/cannot-determine-size-of-graphic minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top No BoundingBox error message up vote 8 down vote favorite 1 I want to include an eps file in LaTeX. I typed the following in Texmaker \begin{document} \begin{figure}[!ht] \centering \includegraphics[scale=1]{figure} \end{figure} \end{document} The error I get is http://tex.stackexchange.com/questions/133786/no-boundingbox-error-message/133794 ! LaTeX Error: Cannot determine size of graphic in figure.eps (no BoundingBox). Please help! graphics share|improve this question edited Sep 17 '13 at 19:20 Mico 175k17233532 asked Sep 17 '13 at 19:07 Vishal Upadhyay 41112 Welcome to TeX.SE! What is the filename extension of your graphics file? Is it .eps, or something else? Please advise. –Mico Sep 17 '13 at 19:20 2 does you figure have a bounding box (a line like %%BoundingBox: 1 2 3 4) It should have if it is a valid EPS file. –David Carlisle Sep 17 '13 at 19:24 As @David Carlisle is saying; try opening your figure.eps in a text_editor and search for the word: BoundingBox. If it is not there, then something is wrong. What is the source of your figure? –Hans-Peter E. Kristiansen Sep 17 '13 at 19:29 in some .eps files, the bounding box information is at the end, rather than at the beginning where it really belongs. (and latex won't find it at the end.) with more specific information, someone here can give instructions on how to repair it. –barbara
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About http://stackoverflow.com/questions/731933/error-including-image-in-latex Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Error including image in Latex [closed] up error cannot vote 29 down vote favorite 6 I am getting the following error while compiling my Latex File : ! LaTeX Error: Cannot determine size of graphic in tree.jpg (no BoundingBox). Why do I get this error ? What has this to do with an .eps file ? In fact, I could compile it fine with MacTex on my machine. But when I submit it online to error cannot determine 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. I am using the following syntax for including the images : \begin{figure}[!h] \begin{center} \scalebox{0.45}{ \includegraphics{tree.jpg}} \end{center} \caption{\small A sample} \label{tree} \end{figure} What should I do ? Could it be that their server is using an old compiler ? UPDATE : 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. pdf latex eps share|improve this question edited May 3 '12 at 13:05 Mr Lister 24.9k85381 asked Apr 8 '09 at 21:29 euphoria83 5,581164862 closed as off-topic by Dave Jarvis, joran, Fraser, torazaburo, sandrstar Aug 13 '13 at 3:25 This question does not appear to be about programming within the scope defined in the help center.If this question can be reworded to fit the rules in the help center, please edit the question. 1 Are you using pdflatex? Cause latex only supports vector graphics (read: eps) –Stephan202 Apr 8 '09 at 21:36 1 For what it's worth,
be down. Please try the request again. Your cache administrator is webmaster. Generated Mon, 10 Oct 2016 17:10:08 GMT by s_wx1131 (squid/3.5.20)