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 - Has this been solved?? [message #87025 is a reply to message #87024] Sun, 29 December 2013 06:53 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Barry Lesht writes:

> On Thursday, August 1, 2013 4:47:49 PM UTC-5, Matthew Argall wrote:
>> ImageMagick is giving me an error whenever I try to use Output. Anyone know what is going on?
>>
>>
>>
>> convert: bad parameters to zlib `/var/tmp/magick-5612FLG4wulHookp1' @ error/png.c/MagickPNGErrorHandler/1804.
>>
>> convert: corrupt image `/var/tmp/magick-5612FLG4wulHookp1' @ error/png.c/ReadPNGImage/4048.
>>
>> convert: Postscript delegate failed `/Users/argall/Desktop/Analysis/20040406/E_Power_LMN_C1_2004 0406_040600_050900.ps': No such file or directory @ error/ps.c/ReadPSImage/837.
>>
>> convert: no images defined `PNG24:/Users/argall/Desktop/Analysis/20040406/E_Power_LMN_C 1_20040406_040600_050900.png' @ error/convert.c/ConvertImageCommand/3106.
>>
>>
>>
> I was wondering if there was any more information about this problem. I use IDL v8.2.3 on a Mac (OSX 10.8.5) and would like to use the Coyote graphics 'cgPS_Open', 'cgPS_Close, /PNG' sequence. As happened to the original poster, when I tried a simple example, I got the "convert: bad parameters..." etc. messages. I have both ImageMagick and ghostscript installed (and have uninstalled and re-installed them as David suggested). Working from within
ImageMagick I can successfully convert a .PS image to .PNG which would suggest that ImageMagick is communicating correctly with ghostscript. I also have tried using the GS_PATH keyword to be sure IDL knows where ghostscript (gs) is installed but this doesn't seem to make any difference.
>
> By the way, I've been launching the development environment from the command line so IDL knows the location of Imagemagick (cgHasImageMagick() = 1).
>
> Has anyone found a solution to this?
>

Since this is a "file not found" message, I wonder if you have
permission to write the PostScript file in that directory. That is the
only reason I can think of that it wouldn't be found there.

Try writing the PostScript file to your local home directory and see if
that helps.

If this is not the problem, then I would set the ShowCmd keyword on
cgPS_Close so you can see the ImageMagick command that is spawned. I
would tease that command apart at the UNIX command line to see if you
can figure out what ImageMagick thinks is wrong with it.

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thue. ("Perhaps thos speakest truth.")
[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: Wed Oct 08 19:24:40 PDT 2025

Total time taken to generate the page: 0.00474 seconds