Charanpal Dhanjal wrote: > Hi, > > I recently started using lyx and mostly I'm happy with the program. One > problem I am having is that whenever I try to import a tif graphics file, > and export the document as PDF, the image is scaled so large it goes off the > page. I have set the scale of the image to 100% of its original size, but it > seems to be much larger than this in the PDF. Is this an error in lyx? If > so, is there a workaround?
Good evening, Charanpal. The problem stems not from your tiff file, nor even from LyX but from the external converter program that is converting your image to png(or eps?) format for inclusion in the pdf document. The actual format of the converted file is dependent upon the pdf-generating mechanism you choose. If you go from lyx->latex->dvi->ps->pdf, then your image will be converted to eps format (That's all that latex knows how to handle.) If you do from lyx->latex->pdf by using pdflatex, then your image will be converted to png format. Try running $ lyx -dbg graphics to see exactly what LyX tries to do with your tiff file. I suspect you'll find you are using our fallback utility script convertDefault.sh to convert from tiff to eps format. convertDefault.sh is nothing but a wrapper for ImageMagick's convert program. How does the eps file look like if you perform the conversion manually? Possible work arounds: 1. Generate your pdf using pdflatex rather than latex, dvips, ps2pdf. If you choose this route, save your tiff file in png format. Both lyx (the screen view) and pdflatex can handle this file format natively. 2. If you prefer to use latex, dvips, ps2pdf, then save your image in eps format. LyX will continue to run a converter in order to generate the screen view of your image but latex will be able to handle this eps file without further manipulations. 3. Leave the tiff file unchanged but specify the dimensions of the final image in the graphics dialog. -- Angus
