On Mon, Oct 07, 2002 at 11:34:26PM +0200, Herbert Voss wrote:
> Bo Peng wrote:
> >I did. I still have this problem. Anyway, what is the source of this
> >problem? convert is in my path and I guess I can convert eps to some
> >other format from command line.
> what does the log say when running lyx with debugging?
> lyx -dbg graphics file.lyx
I create a new file with a eps figure. The result of opening this file
with debugging is:
% Setting debug level to graphics
Debugging `graphics' (Graphics conversion and loading)
Token: 'FormatVersion'
Token: 'filename'
Token: 'display'
Token: 'size_type'
Token: 'rotateOrigin'
Token: 'lyxsize_type'
Token: '\end_inset'
Attempting to convert image file: ~/stat/stat410/p1.2.eps
with recognised extension: eps.
Recognised Fileformat: ps
Recognised Fileformat: ps
The file contains ps format data.
Converting it to xpm format.
Conversion script:
#!/bin/sh
infile='/home/bpeng/stat/stat410/p1.2.eps'
infile_base='/home/bpeng/stat/stat410/p1.2'
outfile='/tmp/lyx_tmpdir24223yAa4tV/gconvert024223AAa4tV.xpm'
convert PS:${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_tmpdir24320yYaaGV/p1.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.
THe version of convert is:
Version: @(#)ImageMagick 5.3.8 09/01/01 Q:16 http://www.imagemagick.org
Copyright: Copyright (C) 2001 ImageMagick Studio
I am working on Solaris 2.8, lyx 2.1.
I will test if convert can convert eps to xpm in command line.
--
Bo Peng