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

Home » Public Forums » archive » Saving via ImageMagick with Coyote Routines fails II
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: Saving via ImageMagick with Coyote Routines fails II [message #82124 is a reply to message #78147] Mon, 19 November 2012 18:03 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
JP writes:

> last time I found this problem with ImageMagick it had to do with
problems in accessing the ps file created by PS_End.
> Now i am getting the same problem EVEN making sure first that there should be no issues in accessing the file:
>
> IDL> new_dir = 'c:\temp2\'
> IDL> FILE_MKDIR, new_dir
> IDL> PS_Start, Filename=new_dir+'test.ps'
> IDL> cgplot, indgen(100)
> IDL> PS_End, /PNG, /showcmd
> PostScript output will be created here: c:\temp2\test.ps
> ImageMagick CONVERT command: convert -alpha off -density 300 "c:\temp2\test.ps" -resize 25% -flatten -rotate 90 "PNG24:c:\temp2\test.png"
> convert.exe: `%s' (%d) "gswin32c.exe" -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dEPSCrop -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=pngalpha" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-r300x300" -g1854x2967 " -sOutputFile=C:/Users/gue026/AppData/Local/Temp/magick-21287 cMXH7w6TR-P--0000001 " " -fC:/Users/gue026/AppData/Local/Temp/magick-2128CVo693jcaWl_ " " -fC:/Users/gue026/AppData/Local/Temp/magick-2128YYBBa5QlYRnx " @
error/utility.c/SystemCommand/1890.
> convert.exe: `%s' (%d) "gswin32c.exe" -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dEPSCrop -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=pngalpha" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-r300x300" -g1854x2967 " -sOutputFile=C:/Users/gue026/AppData/Local/Temp/magick-21287 cMXH7w6TR-P--0000001 " " -fC:/Users/gue026/AppData/Local/Temp/magick-2128CVo693jcaWl_ " " -fC:/Users/gue026/AppData/Local/Temp/magick-2128YYBBa5QlYRnx " -c showpage @
error/utility.c/SystemCommand/1890.
> convert.exe: Postscript delegate failed `c:\temp2\test.ps': No such file or directory @ error/ps.c/ReadPSImage/833.
> convert.exe: no images defined `PNG24:c:\temp2\test.png' @ error/convert.c/ConvertImageCommand/3044.
>
>
> the test.ps file is created, but ImageMagick fails to convert it into a PNG.
> tried in different folders and drives and same result.
>
> Windows 7
> and
> IDL> print, cghasimagemagick(version=version) & print, version
> 1
> 6.8.0-4
>
> interestingly i do the same in another computer with ImageMagick 6.7.3-3 and same results.
>
> any ideas?

File permissions? Don't know.

I'd open a Windows command prompt and see if you
can somehow get ImageMagick to work on its own.
It would seem to be installed properly, and the command
from inside of IDL looks right.

Has to be file permissions, I think.

Let us know.

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 thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: IDLDoc question on properties and fields
Next Topic: SMOOTH or TS_SMOOTH

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

Current Time: Fri Oct 10 12:21:48 PDT 2025

Total time taken to generate the page: 0.88097 seconds