[email protected] wrote:
Hello:

I Insert/Graphics... a PNG file into my lyx document.
I then export the doc to HTML.
Apparently, as part of the exporting process,
lyx processes the PNG file and produces a new PNG file
which is referenced in the html.

Which exporter are you using ? If you are using elyxer, which version ?

The problem is that, while my original PNG
file (cut.png, attached) looks good (and the
preview in lyx looks just as good), the
processed PNG image (img2.png, attached)
does not look good. The processed image
appears to have been scaled up a little, but
I did not specify any scaling as part of the
graphics insert.

For png/jpeg, you can simply replace the distorted files with the new ones. They should have same names, so you needn't edit the HTML.

If you are using elyxer:
There has been many changes in the way elyxer handles figures in the last month. Try the latest version (should be 0.37) and try 0.34 (this one is not messing with images for sure). The most simple way is to download the archive from
https://savannah.nongnu.org/files/?group=elyxer
and simply copy the "elyxer.py" file in it to the LyX script folder.
(on Windows, it's something like:
C:\Program Files\LyX 1.6.4\Resources\scripts  ).

Then reconfigure, quit LyX, reopen LyX, try to export.
Perhaps you'll find one that will suit you.

Why does lyx mess with my PNG?

I'm using version 1.6.4

Best regards,

Olivier

Reply via email to