>>Date: Tue, 15 Jan 2002 19:03:53 +0100 >>From: "J.S." <[EMAIL PROTECTED]> >>To: [EMAIL PROTECTED] >>Subject: <lyx + jpg = pdf> >> >>My problem with getting some jpg images in my report exported to pdf is >>the image size. Can someone tell me how a 300x512 sized image can appear >>as 1.000x1.707 inches in both GIMP and LyX? I don't get it, the size in >>inches can't be, and in fact is _not_ the real 300x512 size. >> >>All this is just sooo confusing, I've been going back and forth for days >>now. You people have been kind to convert my report to PDF for me but, >>though only one were successful. Only one had the images placed properly >>without wasting an entire page on it. >> >>And I was suppose to focus only on what to write? The tutorial is a damn >>lier. No offense to the author.
I guess you have used convert, I suggest that you use identify to check your images sizes; when you come across a4 sized iamges, it may easily come from a misuse of the save command of display. If you convert to ps instaed of eps, you may get into trouble also. You are confused because lyx supposes that you have a minimum understanding of image formats and conversion. To be short: - using normal (La)TeX leaves to postscript the task of image printing, and the only information used is the image size (described in encapsulated postscript or eps - the only sound format to be used for image inclusion in that case - by the so-called bounding box): this + the sizing order given in LyX or LateX allow to provide image inclusion with a minimal instruction like \centering\includegraphics[width=0.8\texwidth]{foo.eps} which can be held to the auto placement algorithm in the figure float environment. In that case, the dvi file does not include the postcript code, but only a reference to it, which is fulfilled when printing is required (or by some dvi viewers which are able to show postscript); - using pdflatex provides direct pdf file without intermediate dvi file: in that case, no eps can be used, and a proper file format must be produced using epstodf or convert (to get jpg or png formats). The graphics package is smart enough to look for eps file (with no options) or png, jpg or png (with pdftex option), so that it is possible to have flexible lyx or latex file by inserting files without suffices, like includegraphics[width=0.8\texwidth]{foo} and to change the class option from none to pdftex. In the case of your document, where you have already the jpg file and want pdf output, you may proceed like that, but you won't be able to see the rendering in LyX which works on eps files. If you're satisfied with setting the image size without actually seeing it (as in the above example, where it is relative to \textwidth) it may be OK, but I think you must set the image width or height, otherwise pdflatex will take the jpg as it is. Personnaly, I make a through use of tex2pdf, which takes care of image conversion automagically. -- Jean-Pierre