Page 1 of 1

still same bug in -draw polyline IM 6.4.2-9

Posted: 2008-08-17T12:43:24-07:00
by fmw42
IM 6.4.2-9 Q16 Mac OSX Tiger:

Changelog says:
2008-08-14 6.4.2-9 Cristy <quetzlzacatenango@image...>
The -draw option no longer returns an error when for # like .6 (reference viewtopic.php?f=3&t=11879).
But this still gives error:
points="0,0 .6,2.1 1.2,4.6 1.9,7.6 2.6,11.0 3.3,14.6 4.0,18.5 4.9,22.6 5.8,27.0 6.7,31.4 7.8,35.9 8.9,40.4 10.2,45.0 11.5,49.4 13.0,53.8 14.6,58.0 16.4,62.0 18.3,65.7 20.3,69.1 22.5,72.2 25.0,75.0 27.7,77.4 30.8,79.6 34.2,81.6 38.0,83.6 41.9,85.3 46.1,86.9 50.5,88.4 55.0,89.8 59.5,91.0 64.0,92.1 68.5,93.2 73.0,94.2 77.3,95.0 81.4,95.9 85.3,96.6 89.0,97.4 92.3,98.0 95.3,98.7 97.8,99.3 100,100"
convert -size 101x101 xc:white -fill white \
-draw "stroke red polyline $points" \
-flip test_interp_graph.gif
convert: Non-conforming drawing primitive definition `polyline'.

And so does this (with leading minus period sign):
points="0,0 -.6,2.1 1.2,4.6 1.9,7.6 2.6,11.0 3.3,14.6 4.0,18.5 4.9,22.6 5.8,27.0 6.7,31.4 7.8,35.9 8.9,40.4 10.2,45.0 11.5,49.4 13.0,53.8 14.6,58.0 16.4,62.0 18.3,65.7 20.3,69.1 22.5,72.2 25.0,75.0 27.7,77.4 30.8,79.6 34.2,81.6 38.0,83.6 41.9,85.3 46.1,86.9 50.5,88.4 55.0,89.8 59.5,91.0 64.0,92.1 68.5,93.2 73.0,94.2 77.3,95.0 81.4,95.9 85.3,96.6 89.0,97.4 92.3,98.0 95.3,98.7 97.8,99.3 100,100"
convert -size 101x101 xc:white -fill white \
-draw "stroke red polyline $points" \
-flip test_interp_graph.gif
convert: Non-conforming drawing primitive definition `polyline'.

But this works fine (so long as minus period is not following a space):
points="0,0 0.6,-.6 1.2,4.6 1.9,7.6 2.6,11.0 3.3,14.6 4.0,18.5 4.9,22.6 5.8,27.0 6.7,31.4 7.8,35.9 8.9,40.4 10.2,45.0 11.5,49.4 13.0,53.8 14.6,58.0 16.4,62.0 18.3,65.7 20.3,69.1 22.5,72.2 25.0,75.0 27.7,77.4 30.8,79.6 34.2,81.6 38.0,83.6 41.9,85.3 46.1,86.9 50.5,88.4 55.0,89.8 59.5,91.0 64.0,92.1 68.5,93.2 73.0,94.2 77.3,95.0 81.4,95.9 85.3,96.6 89.0,97.4 92.3,98.0 95.3,98.7 97.8,99.3 100,100"
convert -size 101x101 xc:white -fill white \
-draw "stroke red polyline $points" \
-flip test_interp_graph.gif

Re: still same bug in -draw polyline IM 6.4.2-9

Posted: 2008-08-17T13:20:08-07:00
by magick
We tried your commands and they produced the expected polyline without complaint. Not sure why its failing for you.

Re: still same bug in -draw polyline IM 6.4.2-9

Posted: 2008-08-17T22:15:30-07:00
by fmw42
I wrote the following earlier, but now I see that 6.4.2-10 is available. So I will download that and test it tomorrow and report back. So, for now, ignore the following.



Have you for some reason recompile 6.4.2-9 perhaps since I downloaded it?

Are you running from the subversion or the actual IM release?

Anything in my config that looks strange?

convert -list configure

Path: /usr/local/lib/ImageMagick-6.4.2/config/configure.xml

Name Value
-------------------------------------------------------------------------------
CC gcc
CFLAGS -g -O2 -Wall -W -D_THREAD_SAFE
CONFIGURE ./configure --enable-delegate-build --enable-shared --disable-static --with-modules --with-quantum-depth=16 --without-wmf --enable-libtool-verbose --disable-dependency-tracking --with-gs-font-dir=/usr/local/share/ghostscript/fonts/ --with-lqr
COPYRIGHT Copyright (C) 1999-2008 ImageMagick Studio LLC
CPPFLAGS -I/usr/local/include/ImageMagick
CXX g++
CXXFLAGS -g -O2 -Wall -W -D_THREAD_SAFE
DEFS -DHAVE_CONFIG_H
DELEGATES bzlib freetype gs jpeg jp2 lcms png tiff x11 xml zlib
DISTCHECK_CONFIG_FLAGS --disable-deprecated --with-quantum-depth=16 --with-umem=no --with-autotrace=no --with-fontpath= --with-gs-font-dir=/usr/local/share/ghostscript/fonts/ --with-wmf=no
EXEC-PREFIX /usr/local
HOST powerpc-apple-darwin8.11.0
LDFLAGS -L/usr/local/lib -L/Users/fred/Applications/ImageMagick-6.4.2-9source/magick -L/Users/fred/Applications/ImageMagick-6.4.2-9source/wand -L/usr/X11R6/lib -L/usr/local/lib -lfreetype -lz
LIB_VERSION 0x642
LIB_VERSION_NUMBER 6,4,2,9
LIBS -lMagickCore -llcms -ltiff -lfreetype -ljpeg -lXext -lSM -lICE -lX11 -lXt -lbz2 -lz -lm -lpthread
NAME ImageMagick
PCFLAGS
PREFIX /usr/local
QuantumDepth 16
RELEASE_DATE 08/17/08
VERSION 6.4.2
WEBSITE http://www.imagemagick.org

Adding -debug all:


points="0,0 .6,4.6 2.6,11.0 4.0,18.5 5.8,27.0 7.8,35.9 10.2,45.0 13.0,53.8 16.4,62.0 20.3,69.1 25.0,75.0 30.8,79.6 38.0,83.6 46.1,86.9 55.0,89.8 64.0,92.1 73.0,94.2 81.4,95.9 89.0,97.4 95.3,98.7 100,100"
convert -debug all -size 101x101 xc:white -fill white \
-draw "stroke red polyline $points" \
-flip test_interp_graph.gif
2008-08-17T22:13:29-07:00 0:01 0.000u 6.4.2 Configure convert[247]: configure.c/unknown/528/Configure
Searching for configure file: "/usr/local/share/ImageMagick-6.4.2/config/coder.xml"
2008-08-17T22:13:29-07:00 0:01 0.000u 6.4.2 Configure convert[247]: configure.c/unknown/528/Configure
Searching for configure file: "/usr/local/lib/ImageMagick-6.4.2/config/coder.xml"
2008-08-17T22:13:29-07:00 0:01 0.000u 6.4.2 Configure convert[247]: configure.c/unknown/528/Configure
Searching for configure file: "/usr/local/share/doc/ImageMagick-6.4.2/coder.xml"
2008-08-17T22:13:29-07:00 0:01 0.000u 6.4.2 Configure convert[247]: configure.c/unknown/528/Configure
Searching for configure file: "/usr/local/share/ImageMagick-6.4.2/coder.xml"
2008-08-17T22:13:29-07:00 0:01 0.000u 6.4.2 Configure convert[247]: configure.c/unknown/528/Configure
Searching for configure file: "/Users/fred/.magick/coder.xml"
2008-08-17T22:13:29-07:00 0:01 0.000u 6.4.2 Configure convert[247]: configure.c/unknown/528/Configure
Searching for configure file: "coder.xml"
2008-08-17T22:13:29-07:00 0:01 0.000u 6.4.2 Configure convert[247]: coder.c/unknown/637/Configure
Loading coder map "/usr/local/share/ImageMagick-6.4.2/config/coder.xml" ...
2008-08-17T22:13:29-07:00 0:01 0.010u 6.4.2 Module convert[247]: module.c/unknown/1082/Module
Searching for module "xc" using filename "xc.la"
2008-08-17T22:13:29-07:00 0:01 0.010u 6.4.2 Module convert[247]: module.c/unknown/479/Module
Searching for coder module file "xc.la" ...
2008-08-17T22:13:29-07:00 0:01 0.010u 6.4.2 Module convert[247]: module.c/unknown/1102/Module
Opening module at path "/usr/local/lib/ImageMagick-6.4.2/modules-Q16/coders/xc.la"
2008-08-17T22:13:29-07:00 0:01 0.010u 6.4.2 Module convert[247]: module.c/unknown/1136/Module
Method "RegisterXCImage" in module "xc" at address 0xbc600
2008-08-17T22:13:29-07:00 0:01 0.010u 6.4.2 Module convert[247]: module.c/unknown/1151/Module
Method "UnregisterXCImage" in module "xc" at address 0xbc690
2008-08-17T22:13:29-07:00 0:01 0.010u 6.4.2 Configure convert[247]: configure.c/unknown/528/Configure
Searching for configure file: "/usr/local/share/ImageMagick-6.4.2/config/delegates.xml"
2008-08-17T22:13:29-07:00 0:01 0.010u 6.4.2 Configure convert[247]: configure.c/unknown/528/Configure
Searching for configure file: "/usr/local/lib/ImageMagick-6.4.2/config/delegates.xml"
2008-08-17T22:13:29-07:00 0:01 0.010u 6.4.2 Configure convert[247]: configure.c/unknown/528/Configure
Searching for configure file: "/usr/local/share/doc/ImageMagick-6.4.2/delegates.xml"
2008-08-17T22:13:29-07:00 0:01 0.010u 6.4.2 Configure convert[247]: configure.c/unknown/528/Configure
Searching for configure file: "/usr/local/share/ImageMagick-6.4.2/delegates.xml"
2008-08-17T22:13:29-07:00 0:01 0.010u 6.4.2 Configure convert[247]: configure.c/unknown/528/Configure
Searching for configure file: "/Users/fred/.magick/delegates.xml"
2008-08-17T22:13:29-07:00 0:01 0.010u 6.4.2 Configure convert[247]: configure.c/unknown/528/Configure
Searching for configure file: "delegates.xml"
2008-08-17T22:13:29-07:00 0:01 0.010u 6.4.2 Configure convert[247]: delegate.c/unknown/1167/Configure
Loading delegate map "/usr/local/lib/ImageMagick-6.4.2/config/delegates.xml" ...
2008-08-17T22:13:29-07:00 0:01 0.020u 6.4.2 Configure convert[247]: utility.c/unknown/808/Configure
Command line: convert {-debug} {all} {-size} {101x101} {xc:white} {-fill} {white} {-draw} {stroke red polyline 0,0 .6,4.6 2.6,11.0 4.0,18.5 5.8,27.0 7.8,35.9 10.2,45.0 13.0,53.8 16.4,62.0 20.3,69.1 25.0,75.0 30.8,79.6 38.0,83.6 46.1,86.9 55.0,89.8 64.0,92.1 73.0,94.2 81.4,95.9 89.0,97.4 95.3,98.7 100,100} {-flip} {test_interp_graph.gif}
2008-08-17T22:13:29-07:00 0:01 0.030u 6.4.2 Configure convert[247]: configure.c/unknown/528/Configure
Searching for configure file: "/usr/local/share/ImageMagick-6.4.2/config/colors.xml"
2008-08-17T22:13:29-07:00 0:01 0.030u 6.4.2 Configure convert[247]: configure.c/unknown/528/Configure
Searching for configure file: "/usr/local/lib/ImageMagick-6.4.2/config/colors.xml"
2008-08-17T22:13:29-07:00 0:01 0.030u 6.4.2 Configure convert[247]: configure.c/unknown/528/Configure
Searching for configure file: "/usr/local/share/doc/ImageMagick-6.4.2/colors.xml"
2008-08-17T22:13:29-07:00 0:01 0.030u 6.4.2 Configure convert[247]: configure.c/unknown/528/Configure
Searching for configure file: "/usr/local/share/ImageMagick-6.4.2/colors.xml"
2008-08-17T22:13:29-07:00 0:01 0.030u 6.4.2 Configure convert[247]: configure.c/unknown/528/Configure
Searching for configure file: "/Users/fred/.magick/colors.xml"
2008-08-17T22:13:29-07:00 0:01 0.030u 6.4.2 Configure convert[247]: configure.c/unknown/528/Configure
Searching for configure file: "colors.xml"
2008-08-17T22:13:29-07:00 0:01 0.030u 6.4.2 Configure convert[247]: color.c/unknown/2718/Configure
Loading color map "/usr/local/share/ImageMagick-6.4.2/config/colors.xml" ...
2008-08-17T22:13:29-07:00 0:01 0.110u 6.4.2 Resource convert[247]: resource.c/unknown/220/Resource
Area: 99.6kb/99.6kb/4gb
2008-08-17T22:13:29-07:00 0:01 0.110u 6.4.2 Resource convert[247]: resource.c/unknown/220/Resource
Memory: 99.6kb/99.6kb/3gb
2008-08-17T22:13:29-07:00 0:01 0.110u 6.4.2 Cache convert[247]: cache.c/unknown/3534/Cache
open white[0] (anonymous memory, 101x101 99.6kb)
2008-08-17T22:13:29-07:00 0:01 0.130u 6.4.2 Draw convert[247]: draw.c/unknown/1772/Draw
begin draw-image
2008-08-17T22:13:29-07:00 0:01 0.140u 6.4.2 Resource convert[247]: resource.c/unknown/220/Resource
Area: 79.7kb/79.7kb/4gb
2008-08-17T22:13:29-07:00 0:01 0.140u 6.4.2 Resource convert[247]: resource.c/unknown/220/Resource
Memory: 79.7kb/179kb/3gb
2008-08-17T22:13:29-07:00 0:01 0.140u 6.4.2 Cache convert[247]: cache.c/unknown/3534/Cache
open white[0] (anonymous memory, 101x101 79.7kb)
2008-08-17T22:13:29-07:00 0:01 0.140u 6.4.2 Cache convert[247]: cache.c/unknown/1961/Cache
memory => memory
2008-08-17T22:13:29-07:00 0:01 0.140u 6.4.2 Resource convert[247]: resource.c/unknown/853/Resource
Memory: 99.6kb/79.7kb/3gb
2008-08-17T22:13:29-07:00 0:01 0.140u 6.4.2 Draw convert[247]: draw.c/unknown/2756/Draw
stroke red
2008-08-17T22:13:29-07:00 0:01 0.140u 6.4.2 Draw convert[247]: draw.c/unknown/3076/Draw
polyline 0,0
2008-08-17T22:13:29-07:00 0:01 0.140u 6.4.2 Draw convert[247]: draw.c/unknown/3124/Draw
end draw-image
2008-08-17T22:13:29-07:00 0:01 0.140u 6.4.2 Exception convert[247]: draw.c/unknown/3137/Exception
Non-conforming drawing primitive definition `polyline'
2008-08-17T22:13:29-07:00 0:01 0.140u 6.4.2 Resource convert[247]: resource.c/unknown/220/Resource
Area: 79.7kb/79.7kb/4gb
2008-08-17T22:13:29-07:00 0:01 0.140u 6.4.2 Resource convert[247]: resource.c/unknown/220/Resource
Memory: 79.7kb/159kb/3gb
2008-08-17T22:13:29-07:00 0:01 0.140u 6.4.2 Cache convert[247]: cache.c/unknown/3534/Cache
open white[0] (anonymous memory, 101x101 79.7kb)
2008-08-17T22:13:29-07:00 0:01 0.140u 6.4.2 Cache convert[247]: cache.c/unknown/1961/Cache
memory => memory
2008-08-17T22:13:29-07:00 0:01 0.150u 6.4.2 Resource convert[247]: resource.c/unknown/853/Resource
Memory: 79.7kb/79.7kb/3gb
2008-08-17T22:13:29-07:00 0:01 0.150u 6.4.2 Cache convert[247]: cache.c/unknown/2197/Cache
destroy white[0]
2008-08-17T22:13:29-07:00 0:01 0.150u 6.4.2 Module convert[247]: module.c/unknown/1082/Module
Searching for module "GIF" using filename "gif.la"
2008-08-17T22:13:29-07:00 0:01 0.150u 6.4.2 Module convert[247]: module.c/unknown/479/Module
Searching for coder module file "gif.la" ...
2008-08-17T22:13:29-07:00 0:01 0.160u 6.4.2 Module convert[247]: module.c/unknown/1102/Module
Opening module at path "/usr/local/lib/ImageMagick-6.4.2/modules-Q16/coders/gif.la"
2008-08-17T22:13:29-07:00 0:01 0.160u 6.4.2 Module convert[247]: module.c/unknown/1136/Module
Method "RegisterGIFImage" in module "GIF" at address 0xead70
2008-08-17T22:13:29-07:00 0:01 0.160u 6.4.2 Module convert[247]: module.c/unknown/1151/Module
Method "UnregisterGIFImage" in module "GIF" at address 0xeae60
2008-08-17T22:13:29-07:00 0:01 0.160u 6.4.2 Resource convert[247]: resource.c/unknown/220/Resource
Area: 79.7kb/79.7kb/4gb
2008-08-17T22:13:29-07:00 0:01 0.160u 6.4.2 Resource convert[247]: resource.c/unknown/220/Resource
Memory: 79.7kb/159kb/3gb
2008-08-17T22:13:29-07:00 0:01 0.160u 6.4.2 Cache convert[247]: cache.c/unknown/3534/Cache
open test_interp_graph.gif[0] (anonymous memory, 101x101 79.7kb)
2008-08-17T22:13:29-07:00 0:01 0.160u 6.4.2 Cache convert[247]: cache.c/unknown/1961/Cache
memory => memory
2008-08-17T22:13:29-07:00 0:01 0.160u 6.4.2 Resource convert[247]: resource.c/unknown/853/Resource
Memory: 79.7kb/79.7kb/3gb
2008-08-17T22:13:29-07:00 0:01 0.180u 6.4.2 Resource convert[247]: resource.c/unknown/220/Resource
Area: 79.7kb/79.7kb/4gb
2008-08-17T22:13:29-07:00 0:01 0.180u 6.4.2 Resource convert[247]: resource.c/unknown/220/Resource
Memory: 79.7kb/159kb/3gb
2008-08-17T22:13:29-07:00 0:01 0.180u 6.4.2 Cache convert[247]: cache.c/unknown/3534/Cache
open test_interp_graph.gif[0] (anonymous memory, 101x101 79.7kb)
2008-08-17T22:13:29-07:00 0:01 0.180u 6.4.2 Cache convert[247]: cache.c/unknown/1961/Cache
memory => memory
2008-08-17T22:13:29-07:00 0:01 0.180u 6.4.2 Resource convert[247]: resource.c/unknown/853/Resource
Memory: 79.7kb/79.7kb/3gb
2008-08-17T22:13:29-07:00 0:01 0.200u 6.4.2 Resource convert[247]: resource.c/unknown/220/Resource
Area: 99.6kb/99.6kb/4gb
2008-08-17T22:13:29-07:00 0:01 0.200u 6.4.2 Resource convert[247]: resource.c/unknown/220/Resource
Memory: 99.6kb/179kb/3gb
2008-08-17T22:13:29-07:00 0:01 0.200u 6.4.2 Cache convert[247]: cache.c/unknown/3534/Cache
open test_interp_graph.gif[0] (anonymous memory, 101x101 99.6kb)
2008-08-17T22:13:29-07:00 0:01 0.200u 6.4.2 Cache convert[247]: cache.c/unknown/1961/Cache
memory => memory
2008-08-17T22:13:29-07:00 0:01 0.200u 6.4.2 Resource convert[247]: resource.c/unknown/853/Resource
Memory: 79.7kb/99.6kb/3gb
2008-08-17T22:13:29-07:00 0:02 0.220u 6.4.2 Resource convert[247]: resource.c/unknown/853/Resource
Memory: 99.6kb/0b/3gb
2008-08-17T22:13:29-07:00 0:02 0.230u 6.4.2 Cache convert[247]: cache.c/unknown/2197/Cache
destroy test_interp_graph.gif[0]
convert: Non-conforming drawing primitive definition `polyline'.