First problem:
Command: \includegraphics[width=60mm]{input.jpg}
! LaTeX Error: Cannot determine size of graphic in input.jpg (no BoundingBox).
FIX:
\includegraphics[width=Xmm,bb=A B C D]{input.jpg}
where {A-D} are integers which describe the dimensions of the image's bounding box,
and X is a value with describes the width of the image.
Second problem:
Image sizing placement! i.e. the image is either massive and you can only see a corner, or it's the right size but is overlapping text.
FIX(es):
- enclose in a figure and add the environment variables (correct term?) [htp]
- scale the image back to a nice size for your doc
- set the width (or height, or both) of your image area
- set the bounding box because jpg's don't contain these (unlike EPS) - i am guessing the bb params are bottom left, top right x-y pairs, and are specified in millimetres by default. Trial and error is how you figure out the size of the bb.
- clip stops the image from overlapping text, but if your bb is too small, then.. image gets clipped!
Non-placement related stuff:
- caption text inside [] is what is displayed in the table of figures
- actual caption text is within {}
- label text is used for intra-doc cross-ref'ing
e.g.
\begin{figure}[htp]
\centering
\includegraphics[scale=0.2,width=80mm,bb=0 0 800 1100,clip]{Images/img1.jpg}
\caption[My Image] {My Image}\label{fig:img1}
\end{figure}
i can't get colours in the embedded jpeg files. all the images in the final pdf come out in B&W.
ReplyDeleteAny fixes?
It doesn't work... The same error occurs. Maybe there is another workaround
ReplyDeleteSorry guys - it's been over 6 years since I touched LaTeX. Hopefully some generous google visitor will help you with your issue.
ReplyDelete