This patch destroys convertDefaults file name handling:

- include e.g. a PNG to your document - > correctly shown in LyX
- now view this as DVI ->

convert: unable to open image `png:C:/Documents and Settings/usti/Local Settings
/Temp/lyx_tmpdir2212a02928/lyx_tmpbuf0/0D__lyxdokumente_FMF-logo.png': Invalid a
rgument.
convert: missing an image filename `eps:C:/Documents and Settings/usti/Local Set
tings/Temp/lyx_tmpdir2212a02928/lyx_tmpbuf0/0D__lyxdokumente_FMF-logo.eps'.
C:/Program Files (x86)/LyX 1.5beta1-19-02-2007/Resources/./scripts/convertDefaul
t.py ERROR

---

There is another strange thing besides this:

- insert int a new file e.g. the platypus.eps -> it is shown with a lot withespace in A4 size around it within LyX. The reason is that LyX

1. first converts the EPS to PDF using epstopdf
2. then converts it to PNG using ImageMagick

Why not directly convert it to PNG or PPM as in LyX 1.4.4? The second step introduces the whitespace as IM must be invoked with the cropbox parameter when the resulting PDF is not in A4 size. We discovered that not everybody is using an actual IM-version that allows this parameter.

Btw. Enrico has built in a nice function to detect if the installed IM supports the cropbox parameter. This works fine but in the case of EPS the cropbox parameter isn't called in the second step -> one more bug.

Every day I think it's getting better, I find new bugs :-(

regards Uwe

Reply via email to