On Mon, Oct 07, 2002 at 05:15:56PM -0500, Bo Peng wrote:
> 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 strange part is: The image conversion succeed! I can actually see 
/tmp/lyx_tmpdir24320yYaaGV/p1.xpm after I see the "image conversion 
failed" error message. Might there be something wrong with the display 
of xpm file on my system?

-- 
Bo Peng

Reply via email to