Hello Ben,

I am not sure if I can help you with this.

I tested with and witout specifying a converter.
Below are 2 snippets.
In either case I don't get any message about ghostscript being called as you get..? (Does this depend on the debug setting? I start lyx with -dbg graphics)




When I specify (in the prefs):
\converter "eps" "ppm" "convert $$i $$o" ""

I get the following debug message when an eps figure is converted:

--snip--

        Attempting to convert image file: F:/chapters/fig/exp/rose.eps
        with displayed filename: F:/chapters/fig/exp/rose.eps
Recognised Fileformat: eps

        The file contains eps format data.
Unable to convert from eps to bmp
Unable to convert from eps to pbm
Unable to convert from eps to pgm
Unable to convert from eps to png
        Converting it to ppm format.
Converter c-tor:
        from_file:      F:/chapters/fig/exp/rose.eps
        to_file_base: C:/cygwin/tmp/lyx_tmpdir2468a02816/rose2468a02816
        from_format:  eps
        to_format:    ppm
build_script ... ready!
        Conversion script:
--------------------------------------
#!/bin/sh
infile="F:/chapters/fig/exp/rose.eps"
infile_base="F:/chapters/fig/exp/rose"
outfile="C:/cygwin/tmp/lyx_tmpdir2468a02816/gconvert22468a02816.ppm"

convert ${infile} ${outfile} ||
{
        'rm' -f ${outfile}
        exit 1
}

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="C:/cygwin/tmp/lyx_tmpdir2468a02816/rose2468a02816.ppm"

'mv' -f ${fromfile} ${tofile} ||
{
        'cp' -f ${fromfile} ${tofile} ||
        {
                exit 1
        }
        'rm' -f ${fromfile}
}

--------------------------------------
Image conversion succeeded.
Loading image.
just Loaded.
pixmap isNull 0 xformed_pixmap_ isNull 0
Image loading succeeded.
GraphicsImage::getScaledDImensions()
        params.scale       : 100
        width              : 107
        height             : 133
pixmap isNull 0 xformed_pixmap_ isNull 0
setPixmap()

-- end snip--

If I don't specify a converter I get:

-- snip 2 --
Attempting to convert image file: F:/chapters/fig/exp/rose.eps
        with displayed filename: F:/chapters/fig/exp/rose.eps
Recognised Fileformat: eps

The file contains eps format data.
Unable to convert from eps to bmp
Unable to convert from eps to pbm
Unable to convert from eps to pgm
Unable to convert from eps to png
Unable to convert from eps to ppm
Unable to convert from eps to xbm
Unable to convert from eps to xpm
Converting it to ppm format.
Converter c-tor:
from_file: F:/chapters/fig/exp/rose.eps
to_file_base: C:/cygwin/tmp/lyx_tmpdir2468a02816/rose2468a02816
from_format: eps
to_format: ppm
build_script ... ready (edgepath.empty())
No converter defined! I use convertDefault.sh
sh C:/lyx/share/lyx/scripts/convertDefault.sh eps:F:/chapters/fig/exp/ro
se.eps ppm:C:/cygwin/tmp/lyx_tmpdir2468a02816/rose2468a02816.ppm
Image conversion failed.
Unable to find converted file!


-- end snip2 --

/jorgen




Reply via email to