Saving via ImageMagick with Coyote Routines fails [message #77802] |
Thu, 22 September 2011 08:46  |
Robin Wilson
Messages: 40 Registered: August 2010
|
Member |
|
|
Hi David (and others),
When trying to save from a cgWindow using the 'via ImageMagick' option I
get a window pop up saying that ImageMagick has stopped working (one of
those annoying Windows windows that tells you nothing you didn't know
already...) and then the following messages in the IDL console:
PostScript output will be created here: D:\Users\Student\Desktop\cgwindow.ps
ImageMagick CONVERT command:
convert -alpha off -density 300 "D:\Users\Student\Desktop\cgwindow.ps"
-resize 25% -flatten -rotate 90 "D:\Users\Student\Desktop\cgwindow.gif"
Unrecoverable error: rangecheck in .setuserparams
Operand stack:
--nostringval-- --nostringval-- --nostringval--
START 0 2588256 1247603 1476808 191920 true 1141 5 <3>
END PROCS 1 2588256 1258902 1476808 193304 true 1140 5 <3>
gs_std_e.ps 1 2608352 1264715 1476808 194688 true 1140 5 <6>
gs_il1_e.ps 2 2608352 1266904 1476808 194688 true 1140 5 <9>
END FONTDIR/ENCS 2 2608352 1267082 1476808 194688 true 1140 5 <15>
END DEVS 3 2611856 1274114 1476808 194688 true 1140 5 <15>
END STATD 3 2611856 1281284 1496904 199640 true 1140 5 <39>
END GS_FONTS 5 2652048 1312160 1496904 199640 true 1141 5 <45>
END BASIC COLOR 6 2652048 1318727 1496904 199640 true 1139 5 <48>
END LEVEL 1 COLOR 6 2652048 1320461 1496904 199640 true 1139 5 <51>
END IMAGE 7 2672144 1327169 1496904 199640 true 1139 5 <54>
gs_btokn.ps 8 2672144 1330617 1496904 199640 true 998 4 <57>
gs_dps1.ps 8 2672144 1331968 1496904 199640 true 998 4 <57>
gs_dps2.ps 9 2672144 1333981 1496904 199640 true 998 4 <57>
gs_type1.ps 9 2672144 1335513 1496904 199640 true 998 4 <57>
While reading gs_lev2.ps:
%%[ Error: invalidaccess; OffendingCommand: put ]%%
START 293278 2746856 1404718 1496904 201896 true 1002 7 <92>
END PROCS 293279 2746856 1416001 1496904 203280 true 1000 7 <92>
gs_std_e.ps 293280 2766952 1422062 1496904 204664 true 1000 7 <95>
gs_il1_e.ps 293280 2766952 1424251 1496904 204664 true 1000 7 <98>
END FONTDIR/ENCS 293281 2766952 1424429 1496904 204664 true 1000 7 <104>
END DEVS 293281 2770456 1431461 1496904 204664 true 1000 7 <104>
END STATD 293282 2770456 1438647 1496904 206288 true 1000 7 <128>
END GS_FONTS 293283 2800400 1467829 1496904 206288 true 1000 7 <134>
END BASIC COLOR 293284 2820496 1477724 1496904 206288 true 998 7 <137>
END LEVEL 1 COLOR 293284 2820496 1479458 1496904 206288 true 998 7 <140>
END IMAGE 293285 2820496 1482766 1496904 206288 true 998 7 <143>
gs_btokn.ps 293286 2820496 1486214 1496904 206288 true 998 7 <146>
gs_dps1.ps 293286 2820496 1487565 1496904 206288 true 998 7 <146>
gs_dps2.ps 293287 2820496 1489578 1496904 206288 true 998 7 <146>
gs_type1.ps 293287 2840592 1494462 1496904 206288 true 998 7 <146>
While reading gs_lev2.ps:
%%[ Error: invalidaccess; OffendingCommand: put ]%%
I get the same error when executing the convert command from the Windows
command line.
I am running IDL 8.0 on Windows 7 with the latest version of ImageMagick
(downloaded today) installed. I've tested this with conversion to PNG,
GIF, BMP etc and it happens for all of them. It seems to be some error
with the PS file.
Any ideas why this is happening?
Cheers,
Robin
------------------
Robin Wilson
A PhD student studying complexity in remote sensing
www.rtwilson.com/academic
|
|
|
Re: Saving via ImageMagick with Coyote Routines fails [message #77866 is a reply to message #77802] |
Fri, 30 September 2011 11:36  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Robin Wilson writes:
> How strange! I've just installed exactly the same version as you used on
> a similar machine (W7, 64-bit, IDL 8.0) and it gave exactly the same error.
>
> Any other ideas?
You may have already tried this, but it's an idea.
Are you *sure* your PATH is set up so you are running
the ImageMagick you think you are running? Typing
"convert -version" in your command window should point
to the version of ImageMagick you just installed.
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 [message #77871 is a reply to message #77802] |
Fri, 30 September 2011 05:19  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Robin Wilson writes:
> How strange! I've just installed exactly the same version as you used on
> a similar machine (W7, 64-bit, IDL 8.0) and it gave exactly the same error.
>
> Any other ideas?
Does ImageMagick have any problems with a PostScript
file created in, say, IDL 7?
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.")
|
|
|