On Friday 23 April 2004 12:08 pm, Juan Luis UPSAM wrote:
> Let's see,
>
> First of all, thank you Angus! It has been a ton of time since I
> worked with Ms-Dos and I forgot all about paths. Indeed, I started
> to look for config.sys till I saw that I had to use control panel
> :P
>
> Now lyx can find where ImageMagick is... but as you can see in the
> screenshot, the library doesn't handle the conversion. Meanwhile,
> the console screen shows a long list of possibilities of (I guess)
> convert.exe, but don't work with the graphic file (see console
> screenshot).

Ok. So now we need to ascertain why 'convert' failed. Or if, indeed, 
it was run.

Three things to do:
1. Check that your postscript file is valid.

2. Invoke lyx from the console as
PROMPT> lyx -dbg graphics

This will spew out a whole heap of noise, some of which may be useful.

3. The actual converter you use to go from ps->png format (or any 
other format loadable by the GUI frontend library in fact) can be 
specified 'by hand'. See the Preferences dialog, Converter pane.

I suspect that nothing is listed, meaning that lyx falls back on the 
convertDefault.sh script to be found in 
$PREFIX/share/lyx/scripts/convertDefault.sh

($PREFIX/bin/lyx is where the lyx executable is to be found.)

This script is a wrapper for ImageMagick's convert. To check that it 
is indeed being invoked, add these lines to it:

echo
echo CONVERTDEFAULT.SH
echo
echo $@
echo

which will print out the arguments used to invoke it.

Angus

Reply via email to