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

Home » Public Forums » archive » Re: Saving via ImageMagick with Coyote Routines fails II
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Saving via ImageMagick with Coyote Routines fails II [message #78142] Tue, 25 October 2011 20:33 Go to next message
JP is currently offline  JP
Messages: 55
Registered: April 2008
Member
thanks David, you were right, there was some issue with ImageMagick accessing the file. The following code worked OK:

IDL> new_dir = 'c:\new\'
IDL> FILE_MKDIR, new_dir
IDL> PS_Start, Filename=new_dir+'test.ps'
IDL> cgplot, indgen(100)
IDL> PS_End, /PNG
PostScript output will be created here: c:\new\test.ps
ImageMagick CONVERT command: convert -alpha off -density 300 "c:\new\test.ps" -resize 25% -flatten -rotate 90 "PNG24:c:\new\test.png"


JP
Re: Saving via ImageMagick with Coyote Routines fails II [message #78144 is a reply to message #78142] Tue, 25 October 2011 19:23 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
JP writes:

> I am running the latest version (6.7.3-2), just updated from a previous version but the problem persists .
>
> Any ideas?

File protection problems!? Don't know. If the file
is there, and ImageMagick is pointed in that direction,
and the file can't be found. Then presumably the file
can't be, what? Read? Opened?

I guess I would check the file protections on the file
and on that directory. Very strange, though. I've never
run into this kind of problem on Windows in a temp
directory. What version of Windows is this?

Did you install the right version of ImageMagick for your
operating system?

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: Saving via ImageMagick with Coyote Routines fails II [message #82125 is a reply to message #78142] Mon, 19 November 2012 17:23 Go to previous message
JP is currently offline  JP
Messages: 55
Registered: April 2008
Member
Hi there,

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?

Thanks



On Wednesday, 26 October 2011 14:33:18 UTC+11, JP wrote:
> thanks David, you were right, there was some issue with ImageMagick accessing the file. The following code worked OK:
>
>
>
> IDL> new_dir = 'c:\new\'
>
> IDL> FILE_MKDIR, new_dir
>
> IDL> PS_Start, Filename=new_dir+'test.ps'
>
> IDL> cgplot, indgen(100)
>
> IDL> PS_End, /PNG
>
> PostScript output will be created here: c:\new\test.ps
>
> ImageMagick CONVERT command: convert -alpha off -density 300 "c:\new\test.ps" -resize 25% -flatten -rotate 90 "PNG24:c:\new\test.png"
>
>
>
>
>
> JP
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: How can I rotate text in the axes of a bar graph?
Next Topic: Re: How can I rotate text in the axes of a bar graph?

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

Current Time: Wed Oct 08 13:35:38 PDT 2025

Total time taken to generate the page: 0.00562 seconds