On Jan 18, 2010, at 4:49 PM, Stephen Buonopane wrote:

I recently upgraded to TeXLive 2009 and LyX 1.6.5 on Mac.
On screen LyX preview of pdf graphics no longer works (other formats seem to work).
convert *.pdf *.ppm works fine from the command line
below is the error output
Any ideas?

Thanks
Steve


Current allocation mode is local
GPL Ghostscript 8.70: Unrecoverable error, exit code 1
convert: Postscript delegate failed `/var/folders/oQ/oQgNvHsZ2Ras4+ +8ZRE7qU+++TI/-Tmp-/lyx_tmpdir.L14418/gconvert1.K14418.pdf': No such file or directory @ pdf.c/ReadPDFImage/634. convert: missing an image filename `ppm:/var/folders/oQ/ oQgNvHsZ2Ras4++8ZRE7qU+++TI/-Tmp-/lyx_tmpdir.L14418/ CacheItem.M14418.ppm' @ convert.c/ConvertImageCommand/2838. /Applications/LyX.app/Contents/Resources/scripts/convertDefault.py ERROR
Execution of "convert" failed.

This seems to be a result of the bug reported here
https://bugs.launchpad.net/ubuntu/+source/imagemagick/+bug/487637

Copy the script convertDefault.py from /Applications/LyX.app/Contents/ Resources/scripts

Comment out the lines
if sys.argv[1][:4] == 'pdf:' and (version >= 0x060206 or gm):
    opts = '-define pdf:use-cropbox=true ' + opts

On a Mac, the script goes in
/Users/username/Library/Application\ Support/LyX-1.6/scripts



Reply via email to