Re: graphics preview on Mac

2010-01-18 Thread Stephen Buonopane


On Jan 18, 2010, at 6:40 PM, Pavel Sanda wrote:


BH wrote:

I can confirm: graphics on screen cannot be viewed, though printed
output is fine.

I have gs version 8.70 (as does Stephen).


i believe its fixed in ghostscript trunk by
http://code.google.com/p/ghostscript/source/detail?r=10560

you have to wait for 8.71 or try svn...

pavel


Or see my follow-up post for a workaround by changing the script  
convertDefault.py





Re: graphics preview on Mac

2010-01-18 Thread Pavel Sanda
BH wrote:
> I can confirm: graphics on screen cannot be viewed, though printed
> output is fine.
> 
> I have gs version 8.70 (as does Stephen).

i believe its fixed in ghostscript trunk by 
http://code.google.com/p/ghostscript/source/detail?r=10560

you have to wait for 8.71 or try svn...

pavel


Re: graphics preview on Mac

2010-01-18 Thread BH
On Mon, Jan 18, 2010 at 5:36 PM, Pavel Sanda  wrote:
> Stephen Buonopane wrote:
>>> Current allocation mode is local
>>> GPL Ghostscript 8.70: Unrecoverable error, exit code 1
>>> convert: Postscript delegate failed
>
> whats the output of "gs --version" ?

I can confirm: graphics on screen cannot be viewed, though printed
output is fine.

I have gs version 8.70 (as does Stephen).

BH


Re: graphics preview on Mac

2010-01-18 Thread Pavel Sanda
Stephen Buonopane wrote:
>> Current allocation mode is local
>> GPL Ghostscript 8.70: Unrecoverable error, exit code 1
>> convert: Postscript delegate failed 

whats the output of "gs --version" ?

pavel


Re: graphics preview on Mac

2010-01-18 Thread Stephen Buonopane


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





graphics preview on Mac

2010-01-18 Thread Stephen Buonopane

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.