On Tue, Nov 20, 2001 at 10:58:43PM -0500, Laurent Duperval wrote:
> I'm working on a document that uses PNG files and when I export to HTML
> or to PDF, it looks like the image gets converted from PNG to EPS back
> to PNG. That slows the process considerably. Is there a way to prevent
> this, and to use the PNG files as is, 'specially for PDF and HTML?

1) HTML
This seems like a problem of the latex2html converter (do you use
latex2html ?). Some converters (e.g. tth) will not create PNG if they find
existing PNG.
You can solve the problem with latex2html by using the following ERT for 
each image:

\latex{insert image inset here}
\begin{rawhtml}<img src="foo.png">\end{rawhtml}

Since it is tiresome to do it for each image, you can write a perl script that
takes a latex file, and replaces each \includegraphics{foo.eps} command
by 
 \latex{\includegraphics{foo.eps}}
 \begin{rawhtml}<img src="foo.png">\end{rawhtml}

2) PDF
Lyx doesn't do any image conversion when creating PDF.
Do you use an external script (tex2pdf), or do you use the CVS version of lyx ?

Reply via email to