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.

when inserting an image into my *.tex-file, I get the error

Dimension too large

the command was (reduced to the important lines)

\begin{figure}[tbp]
\includegraphics{graphics/3-1-23}
\end{figure}

where graphics/3-1-23.pdf is the file I want to include. Also tried to

  • include the original tif or as eps (and left the extension of course), and
  • rename the file and avoid numbers at the beginning of the line.

nothing worked out. The processing way of the image was

  1. get tif from oscillosope
  2. crop it using linux commandline tool "convert"
  3. converted to either eps or pdf

The package graphicx is included, when including as pdf I'm using pdflatex, otherwise latex.

Do you know such a problem or do you have a solution? Thanks in advance :-)

P.S.: Cannot provide an image yet - currently not enough reputation ;-)

share|improve this question
1  
I wouldn't convert a TIFF file into PDF, but rather into PNG. –  egreg May 13 '12 at 16:08
    
Welcome to TeX.SX! You can still add images with the button; before sending the question, remove the ! in front of the [...] and a user with enough rep will reinstate it. However I don't think that in this case this would help, as images are always converted. Can you put the PDF in a public place? –  egreg May 13 '12 at 16:10
    
there you go: 3-1-23.pdf :-) –  Vincent May 13 '12 at 16:14
    
alright, I'm going to give .png a try. Identify tells me: Resolution: 1x1 Print size: 251x201 Units: Undefined How can I change these fields? –  Vincent May 13 '12 at 16:24
    
and my convert call was "convert 3-1-23.tif 3-1-23.pdf" without any further flags when trying .png, latex tells me that it couldn't determine the image size (when running "latex") but when running "pdflatex" everything works out fine... –  Vincent May 13 '12 at 16:25

1 Answer 1

up vote 5 down vote accepted

One of the reasons why pdfTeX doesn't support TIFF image inclusion is that there are really many different TIFF formats. So a conversion is needed to a format that pdfTeX (or TeX) understands.

For TIFF generated by an oscilloscope the best format should probably be PNG; as your example shows there can be resolution problems and indeed your conversion ended with a file which is 18072bp high and 14472bp wide (72bp = 1in), which is approximately 6.3 meters high and 5.1 meters wide.

Add the resolution parameter to the conversion process:

convert -density 300 -units PixelsPerInch 3-1-23.tif 3-1-23.png

should be what's needed. A resolution of 600 dpi might also be good: it depends on the resolution of your printer which one to choose, but usually 300 is a good choice.

share|improve this answer

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.