First of all, thanks for this great application. We've
found it to be
very useful, and has saved us considerable effort.
We have, however, come across an issue while developing a
separate
application. I've been able to recreate it on two
different platforms:
Knoppix 5.0.1
IM Version: 6.0.6
SuSE 10.1
IM Version: 6.2.5
It seems that absolute paths for images aren't correctly
parsed. For
example, the following code will NOT overlay the xmark icon
onto the map
(assuming you have the correct image files):
convert -draw 'image Over 200,200 16,16
/usr/local/playbook/maps/aerial-photos/xmark.png'
/usr/local/playbook/maps/aerial-photos/TwentyNinePalm.jpg
out.jpg
(Please excuse the email client's line wrapping)
However, if the xmark.png path is placed within brackets {}
or the path
is given relative to the current directory (assuming it is a
subdirectory), the icon will be overlayed correctly in
out.jpg.
For the simple case above, if the icon cannot be found no
error message
is produced. For a more complex case (see affixed file),
convert
reports "Non-conforming drawing primitive definition
`usr/local/playbook/maps/aerial-photos/xmark.png'."
and so on for each
call to an icon using absolute paths.
Absolute paths work for fonts, source image, and output
image - just not
for the draw image command.
We could use relative paths, except that some of the icons
are tossed
into the /tmp directory. Navigating using ../../ etc
doesn't work; but
reading from the changelog that might've since been fixed
(but I can't
test the most recent version).
If this has already been resolved, or the problem is on our
end, sorry
to bother you.
Thanks in advance,
Joshua Hamell
waypoint display command-string is: convert -format jpg
-font
/usr/local/playbook/fonts/Vera.ttf -strokewidth
"1" -stroke "black" -box
"white" -draw 'text 650,530
"INTERSECTION-ALPHA"' -fill "none"
-strokewidth "3" -stroke "black"
-draw 'image Over 633,514 16,16
/usr/local/playbook/maps/aerial-photos/xmark.png' -stroke
width "1"
-stroke "black" -box "white" -draw
'text 720,620 "INTERSECTION-BRAVO"'
-fill "none" -strokewidth "3"
-stroke "black" -draw 'image Over 703,604
16,16 /usr/local/playbook/maps/aerial-photos/xmark.png'
-strokewidth "1"
-stroke "black" -box "white" -draw
'text 673,512 "INTERSECTION-CHARLIE"'
-fill "none" -strokewidth "3"
-stroke "black" -draw 'image Over 656,496
16,16 /usr/local/playbook/maps/aerial-photos/xmark.png'
-strokewidth "1"
-stroke "black" -box "white" -draw
'text 319,305 "AIRPORT"' -fill
"none"
-strokewidth "3" -stroke "black"
-draw 'image Over 302,289 16,16
/usr/local/playbook/maps/aerial-photos/xmark.png'
-strokewidth "1"
-stroke "black" -box "white" -draw
'text 710,791 "HIGHWAY"' -fill
"none"
-strokewidth "3" -stroke "black"
-draw 'image Over 693,775 16,16
/usr/local/playbook/maps/aerial-photos/xmark.png' -font
/usr/local/playbook/fonts/Vera.ttf -strokewidth
"1" -stroke "black" -box
"white" -draw 'text 1178,736
"DESTAGE-101"' -fill "none"
-strokewidth
"3" -stroke "black" -draw 'image
Over 1214,720 16,16
/usr/local/playbook/maps/aerial-photos/blue-xmark.png'
-strokewidth "1"
-stroke "black" -box "white" -draw
'text 1178,842 "DESTAGE-201"' -fill
"none" -strokewidth "3" -stroke
"black" -draw 'image Over 1214,826 16,16
/usr/local/playbook/maps/aerial-photos/blue-xmark.png'
-font
/usr/local/playbook/fonts/Vera.ttf -draw 'image Over
1048,957 50,50
/tmp/uavIcona4cd7e1' -draw 'image Over 123,957 50,50
/tmp/uavIcona4cd7e2' -draw 'image Over 1222,876 50,50
/tmp/uavIcona4cd7e3' -draw "polyline 1247,901
1215,863 1184,825 963,558
710,558 679,519 643,524 641,522 641,522 672,561 704,600
767,752 893,752
925,791 1083,791 1146,829 1222,834 image Over 633,514 16,16
/usr/local/playbook/maps/aerial-photos/xkill.jpg image Over
633,514
16,16 /usr/local/playbook/maps/aerial-photos/xkill.jpg
" -strokewidth
"1" -box "white" -stroke
"purple" -draw 'text 1199,871 " 0"
text
1168,833 " 1" text 947,566 " 2" text
694,566 " 3" text 663,527 " 4" text
627,532 " 5" text 625,530 " 6" text
625,530 " 7" text 656,569 " 8" text
688,608 " 9" text 751,760 " 10" text
877,760 " 11" text 909,799 " 12"
text 1067,799 " 13" text 1130,837 "
14" text 1206,842 " 15" '
/usr/local/playbook/maps/aerial-photos/TwentyNinePalm.jpg
/tmp/mapa4cd7e4
convert: Non-conforming drawing primitive definition
`usr/local/playbook/maps/aerial-photos/xmark.png'.
convert: Non-conforming drawing primitive definition
`usr/local/playbook/maps/aerial-photos/xmark.png'.
convert: Non-conforming drawing primitive definition
`usr/local/playbook/maps/aerial-photos/xmark.png'.
convert: Non-conforming drawing primitive definition
`usr/local/playbook/maps/aerial-photos/xmark.png'.
convert: Non-conforming drawing primitive definition
`usr/local/playbook/maps/aerial-photos/xmark.png'.
convert: Non-conforming drawing primitive definition
`usr/local/playbook/maps/aerial-photos/blue-xmark.png'.
convert: Non-conforming drawing primitive definition
`usr/local/playbook/maps/aerial-photos/blue-xmark.png'.
convert: Non-conforming drawing primitive definition
`tmp/uavIcona4cd7e1'.
convert: Non-conforming drawing primitive definition
`tmp/uavIcona4cd7e2'.
convert: Non-conforming drawing primitive definition
`tmp/uavIcona4cd7e3'.
convert: Non-conforming drawing primitive definition
`usr/local/playbook/maps/aerial-photos/xkill.jpg'.
_______________________________________________
Magick-bugs mailing list
Magick-bugs imagemagick.org
http://studio.imagemagick.org/mailman/listinfo/magick-
bugs
|