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

Home » Public Forums » archive » bug in cgHasImageMagic
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
bug in cgHasImageMagic [message #89515] Wed, 22 October 2014 16:15 Go to previous message
JP is currently offline  JP
Messages: 55
Registered: April 2008
Member
Hi David (FYI, the rest of the group),

I found a bug in cgHasImageMagic. It's very simple, I could fix myself, but you may want to update the program.
It has to do with UNC paths:

IDL> cd, 'c:'
IDL> print, cgHasImageMagick(VERSION=VERSION)
1
IDL> print, version
6.8.9-7
IDL> cd, '\\wron\working\'
IDL> print, cgHasImageMagick(VERSION=VERSION)
0

the problem in cgHasImageMagic is that SPAWN does return an error, but it doesn't mean that ImageMagic is not installed:

IDL> Spawn, 'convert -version', result, error_result
IDL> print, error_result
'\\wron\working' CMD.EXE was started with the above path as the current directory. UNC paths are not supported. Defaulting to Windows directory.
IDL> print, result
Version: ImageMagick 6.8.9-7 Q16 x64 2014-08-16 http://www.imagemagick.org Copyright: Copyright (C) 1999-2014 ImageMagick Studio LLC Features: DPC Modules OpenMP
Delegates: bzlib cairo freetype jbig jng jp2 jpeg lcms lqr pangocairo png ps rsvg tiff webp xml zlib


cheers

JP
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Plotting Seasons
Next Topic: Read several files into one big data array?

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

Current Time: Wed Oct 08 16:47:22 PDT 2025

Total time taken to generate the page: 0.00397 seconds