Re: Saving via ImageMagick with Coyote Routines fails II [message #78142] |
Tue, 25 October 2011 20:33  |
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 #82125 is a reply to message #78142] |
Mon, 19 November 2012 17:23  |
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
|
|
|