Well... I was investigating what's happening when I insert a image into a document.
As everybody should know, the script "convertDefault.py" is run. But when this script is run, my environment variable PATH contains (in order): 1. The path to the temporary folder where the image should be created 2. The path of the Python executable 3. C:\Windows\System32 (???) 4. The value set in LyX Path preffix preference (here is the path of ImageMagick and Ghostscript) 5. The original content of PATH variable As one can see, my system32 folder is included in the path for some reason. The problem with this is that Windows already has a utility called "convert.exe", which is called instead of ImageMagick because system32 appears first in the PATH. For now, my workaround is to include the full path of convert.exe utility hardcoded in "convertDefault.py". Does someone know why "c:\Windows\System32" is included in the path? Regards, --- Diego Queiroz 2011/4/18 Diego Queiroz <queiroz.di...@gmail.com> > Hmm, I see. > > Any other guess? > > > --- > Diego Queiroz > > > > 2011/4/18 Paul A. Rubin <ru...@msu.edu> > > On 04/18/2011 05:42 PM, Diego Queiroz wrote: >> >> > Two more things. First, you might check the delegates.xml file (should >> be in >> > the config folder of the IM installation) and make sure it has one or >> more >> > delegate records with "decode=pdf" in them, and that those records name >> "gs" as >> > the delegate. >> >> I think you may get the point. >> My delegates.xml file has only these two lines with decode=pdf >> >> <delegate decode="pdf" encode="eps" mode="bi" >> command=""@PSDelegate@" >> -q -dQUIET -dPARANOIDSAFER -dBATCH -dNOPAUSE -dNOPROMPT >> -dMaxBitmap=500000000 -dEPSCrop -sDEVICE=epswrite >> "-sOutputFile=%o" -- "%i""/> >> <delegate decode="pdf" encode="ps" mode="bi" >> command=""@PSDelegate@" >> -q -dQUIET -dPARANOIDSAFER -dBATCH -dNOPAUSE -dNOPROMPT >> -dMaxBitmap=500000000 -dEPSCrop -dAlignToPixels=0 -dGridFitTT=2 >> -sDEVICE=pswrite "-sOutputFile=%o" -- "%i""/> >> >> I don't know for what is this file, but doesn't it have to contain >> something about pdf to ppm conversion? >> >> No, those are the same lines I have on my office PC (Linux Mint), and >> conversion works fine here. >> > >