Duncan Webb wrote:
"Richard A. Bilonick" <[EMAIL PROTECTED]> writes:Thanks for the suggestion. I turned on graphics debugging and opened the document. Then I scrolled so that just the first figure shows in LyX. I'm not sure why image conversion is failing. The "convert" program (I believe from ImageMagick) is installed and I can use to manually convert from eps to xpm. The conversion preferences appear to be OK also. Should I enable a different debug flag?
I'm running Redhat 8.0 on an I686 pc and using LyX 1.2.1. LyX willThere are some debug flags (type lyx -dbg) that you can set that will tell
create a proper Postscript version with graphs of my document and will
print OK but does not display the eps images in LyX itself. Every figure
has "Error converting to loadable format." Yet it displays the figures
in the Help documentation. I use R 1.6.1 to create eps figures using the
onefile=FALSE, horizontal=FALSE, and paper="special" arguments. This
used to work OK in earlier versions of LyX.
you exactly what lyx is trying to do. A possible cause is that the image has
not been converted to the internal format; LyX looks for 'convert' possibly
at a specified path (it does in the cygwin version) and if it can not
convert the format then you get this error.
Cheers,
Duncan
[lrb0r22@rbilonick lrb0r22]$ lyx -dbg graphics &
[1] 19440
[lrb0r22@rbilonick lrb0r22]$ Setting debug level to graphics
Debugging `graphics' (Graphics conversion and loading)
Token: 'FormatVersion'
Token: 'filename'
Token: 'display'
Token: 'size_type'
Token: 'width'
Token: 'rotateOrigin'
Token: 'lyxsize_type'
Token: 'lyxwidth'
Token: 'lyxheight'
Token: '\end_inset'
Token: 'FormatVersion'
Token: 'filename'
Token: 'display'
Token: 'size_type'
Token: 'width'
Token: 'rotateOrigin'
Token: 'lyxsize_type'
Token: 'lyxwidth'
Token: 'lyxheight'
Token: '\end_inset'
Token: 'FormatVersion'
Token: 'filename'
Token: 'display'
Token: 'size_type'
Token: 'width'
Token: 'rotateOrigin'
Token: 'lyxsize_type'
Token: 'lyxwidth'
Token: 'lyxheight'
Token: '\end_inset'
Token: 'FormatVersion'
Token: 'filename'
Token: 'display'
Token: 'size_type'
Token: 'width'
Token: 'rotateOrigin'
Token: 'lyxsize_type'
Token: 'lyxwidth'
Token: 'lyxheight'
Token: '\end_inset'
Token: 'FormatVersion'
Token: 'filename'
Token: 'display'
Token: 'size_type'
Token: 'width'
Token: 'rotateOrigin'
Token: 'lyxsize_type'
Token: 'lyxwidth'
Token: 'lyxheight'
Token: '\end_inset'
Token: 'FormatVersion'
Token: 'filename'
Token: 'display'
Token: 'size_type'
Token: 'width'
Token: 'rotateOrigin'
Token: 'lyxsize_type'
Token: 'lyxwidth'
Token: 'lyxheight'
Token: '\end_inset'
Token: 'FormatVersion'
Token: 'filename'
Token: 'display'
Token: 'size_type'
Token: 'width'
Token: 'rotateOrigin'
Token: 'lyxsize_type'
Token: 'lyxwidth'
Token: 'lyxheight'
Token: '\end_inset'
Token: 'FormatVersion'
Token: 'filename'
Token: 'display'
Token: 'size_type'
Token: 'width'
Token: 'rotateOrigin'
Token: 'lyxsize_type'
Token: 'lyxwidth'
Token: 'lyxheight'
Token: '\end_inset'
Token: 'FormatVersion'
Token: 'filename'
Token: 'display'
Token: 'size_type'
Token: 'width'
Token: 'rotateOrigin'
Token: 'lyxsize_type'
Token: 'lyxwidth'
Token: 'lyxheight'
Token: '\end_inset'
Attempting to convert image file: /projects/Winters.Steve/PS/pm2.5.time.plot.eps
with recognised extension: eps.
eps detected -> test for an epsi ...
Recognised Fileformat: eps
eps detected -> test for an epsi ...
Recognised Fileformat: eps
The file contains eps format data.
The image loader can load the following directly:
Windows/OS2 BMP file, extension "bmp"
NASA/NOST FITS, extension "fits"
CompuServ GIF, extension "gif"
JPEG/JFIF format, extension "jpg"
Portable Pixmap, extension "ppm"
Portable Graymap, extension "pgm"
Portable Bitmap, extension "pbm"
SGI Iris, extension "sgi"
Tag Image File Format, extension "tif"
X11 Bitmap, extension "xbm"
X Window Dump, extension "xwd"
XPM format, extension "xpm"
Of these, LyX recognises the following formats:
bmp, fits, gif, jpg, ppm, pgm, pbm, sgi, tiff, xbm, xwd, xpm
Converting it to xpm format.
Conversion script:
#!/bin/sh
infile='/projects/Winters.Steve/PS/pm2.5.time.plot.eps'
infile_base='/projects/Winters.Steve/PS/pm2.5.time.plot'
outfile='/tmp/lyx_tmpdir19440fsUj2f/gconvert019440vbS0AT.xpm'
convert EPS:${infile} XPM:${outfile}
if [ $? -ne 0 ]; then
'rm' -f ${outfile}
exit 1
fi
if [ ! -f ${outfile} ]; then
if [ -f ${outfile}.0 ]; then
'mv' -f ${outfile}.0 ${outfile}
'rm' -f ${outfile}.?
else
exit 1
fi
fi
fromfile=${outfile}
tofile='/tmp/lyx_tmpdir19440fsUj2f/pm2.5.time.xpm'
'mv' -f ${fromfile} ${tofile}
if [ $? -ne 0 ]; then
'cp' -f ${fromfile} ${tofile}
if [ $? -ne 0 ]; then
exit 1
fi
'rm' -f ${fromfile}
fi
Image conversion failed.
