comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Error with cg output and ImageMagick
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Error with cg output and ImageMagick [message #87027 is a reply to message #85419] Sun, 29 December 2013 08:55 Go to previous messageGo to previous message
BLesht is currently offline  BLesht
Messages: 89
Registered: March 2007
Member
One more quick test (based on cgPS2Raster.pro):

1. Run convert directly from shell (no problem)
2. Enter IDL from command line
3. Run 'which spawn' to verify convert can be found
4. Create string variable 'cmd' with same convert command issued from shell
5. Run 'spawn, cmd' (fails)

bash-3.2$ convert /Users/blesht/test1.ps /Users/blesht/test1a.png
bash-3.2$ idl
IDL Version 8.2.3, Mac OS X (darwin x86_64 m64). (c) 2013, Exelis Visual Information Solutions, Inc.
Installation number: 230343.
Licensed for use by: Computer Sciences Corporation

IDL> spawn, 'which convert'
/opt/local/bin/convert
IDL> cmd = 'convert /Users/blesht/test1.ps /Users/blesht/test1b.png'
IDL> spawn, cmd
convert: bad parameters to zlib `/var/tmp/magick-270976m_aCGY8JmDu1' @ error/png.c/MagickPNGErrorHandler/1804.
convert: corrupt image `/var/tmp/magick-270976m_aCGY8JmDu1' @ error/png.c/ReadPNGImage/4051.
convert: Postscript delegate failed `/Users/blesht/test1.ps': No such file or directory @ error/ps.c/ReadPSImage/837.
convert: no images defined `/Users/blesht/test1b.png' @ error/convert.c/ConvertImageCommand/3144.

Now I'm wondering about the /var/tmp/magick-... No such file exists in /var/tmp. I suppose it could have been deleted with the failure. Permissions are not a problem for /var/tmp.

bash-3.2$ ls -l /var/tmp
total 0
drwxr-xr-x 3 root wheel 102 Dec 28 10:32 com.WD.SmartwareDriveService
drwxr-xr-x 3 root wheel 102 Nov 30 09:54 com.WD.WDRAIDDriveService
drwx------ 3 root wheel 102 Dec 28 10:31 launchd
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: How to plot multiple cgContour plots using the same colour levels (but containing differing data)
Next Topic: Contour value in each point in XY plane

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Thu Oct 09 23:06:32 PDT 2025

Total time taken to generate the page: 1.11944 seconds