Scripts problems - IM and Cygwin
Posted: 2010-06-30T01:34:02-07:00
Hi ...
I am trying to use Fred WeinHaus scripts but with no sucess...
After some emails t seems that the problem might be my windows Imagemagick / Cygwin configuration.
Using Imagemagick 6.6.2-7 in Windows with Cygwin.
No matter what script I try to run I get several errors like :
/usr/bin/autocolor: line 286: [: 06060207
06060207: integer expression expected
or
/usr/bin/redist: line 572: [: 06060207
06060207: integer expression expected
After some analysis of the scripts I pinpoint the problem after the call
"convert -list configure"
$ convert -list configure
Path: [built-in]
Name Value
-----------------------------------------------------------------------------
NAME ImageMagick
Path: C:\Programas\ImageMagick\config\configure.xml
Name Value
-----------------------------------------------------------------------------
CC vs8
COPYRIGHT Copyright (C) 1999-2010 ImageMagick Studio LLC
DELEGATES bzlib freetype jpeg jp2 lcms png tiff x11 xml wmf zlib
HOST windows-unknown-linux-gnu
LIB_VERSION 0x662
LIB_VERSION_NUMBER 6,6,2,7
NAME ImageMagick
RELEASE_DATE 2010-07-15
VERSION 6.6.2
WEBSITE http://www.imagemagick.org
Path: configure.xml
Name Value
-----------------------------------------------------------------------------
CC vs8
COPYRIGHT Copyright (C) 1999-2010 ImageMagick Studio LLC
DELEGATES bzlib freetype jpeg jp2 lcms png tiff x11 xml wmf zlib
HOST windows-unknown-linux-gnu
LIB_VERSION 0x662
LIB_VERSION_NUMBER 6,6,2,7
NAME ImageMagick
RELEASE_DATE 2010-07-15
VERSION 6.6.2
WEBSITE http://www.imagemagick.org
-------------------------------
Marked in bold is the problem part ...
it seems that "convert -list configure" returns
the strange "LIB_Version_number" as 6,6,2,7
which the script interprets as non-integer number ...
the following line (inside every script) :
im_version=`convert -list configure | sed '/^LIB_VERSION_NUMBER /!d; s//,/; s/,/,0/g; s/,0*\([0-9][0-9]\)/\1/g'`
I get the "strange" value as seen above ...
The scripts do continue but at some point I got the report of a "broken pipe" error ...
Some of the scripts do execute until the end but the resulting image is all messed up
(garbled colors )...
Nonetheless I suppose the problem is with Cygwin configuration ...
Does anyone have some ideas how to configure cygwin or Imagemagick ?
I am trying to use Fred WeinHaus scripts but with no sucess...
After some emails t seems that the problem might be my windows Imagemagick / Cygwin configuration.
Using Imagemagick 6.6.2-7 in Windows with Cygwin.
No matter what script I try to run I get several errors like :
/usr/bin/autocolor: line 286: [: 06060207
06060207: integer expression expected
or
/usr/bin/redist: line 572: [: 06060207
06060207: integer expression expected
After some analysis of the scripts I pinpoint the problem after the call
"convert -list configure"
$ convert -list configure
Path: [built-in]
Name Value
-----------------------------------------------------------------------------
NAME ImageMagick
Path: C:\Programas\ImageMagick\config\configure.xml
Name Value
-----------------------------------------------------------------------------
CC vs8
COPYRIGHT Copyright (C) 1999-2010 ImageMagick Studio LLC
DELEGATES bzlib freetype jpeg jp2 lcms png tiff x11 xml wmf zlib
HOST windows-unknown-linux-gnu
LIB_VERSION 0x662
LIB_VERSION_NUMBER 6,6,2,7
NAME ImageMagick
RELEASE_DATE 2010-07-15
VERSION 6.6.2
WEBSITE http://www.imagemagick.org
Path: configure.xml
Name Value
-----------------------------------------------------------------------------
CC vs8
COPYRIGHT Copyright (C) 1999-2010 ImageMagick Studio LLC
DELEGATES bzlib freetype jpeg jp2 lcms png tiff x11 xml wmf zlib
HOST windows-unknown-linux-gnu
LIB_VERSION 0x662
LIB_VERSION_NUMBER 6,6,2,7
NAME ImageMagick
RELEASE_DATE 2010-07-15
VERSION 6.6.2
WEBSITE http://www.imagemagick.org
-------------------------------
Marked in bold is the problem part ...
it seems that "convert -list configure" returns
the strange "LIB_Version_number" as 6,6,2,7
which the script interprets as non-integer number ...
the following line (inside every script) :
im_version=`convert -list configure | sed '/^LIB_VERSION_NUMBER /!d; s//,/; s/,/,0/g; s/,0*\([0-9][0-9]\)/\1/g'`
I get the "strange" value as seen above ...
The scripts do continue but at some point I got the report of a "broken pipe" error ...
Some of the scripts do execute until the end but the resulting image is all messed up
(garbled colors )...
Nonetheless I suppose the problem is with Cygwin configuration ...
Does anyone have some ideas how to configure cygwin or Imagemagick ?