Hi,
I am building maps by collating minimaps downloaded from the site
of mapa. I am using the convert and montage programs from
imageMagick, within the following script (bbigmap)

#!/bin/sh
case $# in
        0)echo "Use: $0 number_of_cols_of_minimaps file_with_list_of_minimaps 
output_file crop/nocrop additional_options";;
        1)echo "Use: $0 number_of_cols_of_minimaps file_with_list_of_minimaps 
output_file crop/nocrop additional_options";;
        2)echo "Use: $0 number_of_cols_of_minimaps file_with_list_of_minimaps 
output_file crop/nocrop additional_options";;
        3)echo "Use: $0 number_of_cols_of_minimaps file_with_list_of_minimaps 
output_file crop/nocrop additional_options";;
        *)      Z1=$1
                Z2=$2;
                Z3=$3;
                rm -f _AAA_*
                [[ $4="crop" ]] && Z4=$4;
                shift 4;
                case $Z4 in
                crop) for i in `cat $Z2`; do  u=_AAA_`basename $i`; convert $i 
-stroke blue -linewidth 1  -draw "line 0,0,0,20" -draw "line 300,280,300,300" 
-draw "line 0,280,0,300" -draw "line 300,0,300,20" -draw "line 0,0,20,0" -draw 
"line 280,300,300,300" -draw "line 0,300,20,300" -draw "line 280,0,300,0" -crop 
301x301+0+0 $u; done; montage +shadow +label -tile $Z1  -geometry +0+0 _AAA_* 
$* $Z3; rm -f _AAA_*;;
                *)  for i in `cat $Z2`; do  u=_AAA_`basename $i`; convert $i 
-stroke blue -linewidth 1  -draw "line 0,0,0,20" -draw "line 255,235,255,255" 
-draw "line 0,235,0,255" -draw "line 255,0,255,20" -draw "line 0,0,20,0" -draw 
"line 235,255,255,255" -draw "line 0,255,20,255" -draw "line 235,0,255,0" $u; 
done;  montage +shadow +label -tile $Z1  -geometry +0+0 _AAA_* $* $Z3; rm -f 
_AAA_*;;
                esac;;
esac   
#  

The format of the file list (example coh5-Home_877-884x381-385) is:
877-381_625.jpg 877-382_625.jpg 877-383_625.jpg 877-384_625.jpg 877-385_625.jpg 
878-381_625.jpg 878-382_625.jpg 878-383_625.jpg 878-384_625.jpg 878-385_625.jpg 
879-381_625.jpg 879-382_625.jpg 879-383_625.jpg 879-384_625.jpg 879-385_625.jpg 
880-381_625.jpg 880-382_625.jpg 880-383_625.jpg 880-384_625.jpg 880-385_625.jpg 
881-381_625.jpg 881-382_625.jpg 881-383_625.jpg 881-384_625.jpg 881-385_625.jpg 
882-381_625.jpg 882-382_625.jpg 882-383_625.jpg 882-384_625.jpg 882-385_625.jpg 
883-381_625.jpg 883-382_625.jpg 883-383_625.jpg 883-384_625.jpg 883-385_625.jpg 
884-381_625.jpg 884-382_625.jpg 884-383_625.jpg 884-384_625.jpg 884-385_625.jpg 

The files are real or symbolic links to binary jpgs. The first
figure represents the North-South, and the second one, the
West-East coordinates of the minimap.
The command used is of the form:
bbigmap 5 coh5-Home_877-884x381-385 /tmp/a.jpg nocrop

Today I annotated four of the minimaps and named them a$OLDNAME
(example: a879-381_625.jpg).
To my surprize, the four annotated maps were not placed by the script 
at the same locations as the unmodified versions, following their 
locations in the file. They appeared, instead in the South-East 
corner of the map. This did not happen when, instead prepending the
a, I appended it to the 625 (example: 879-381_625a.jpg).
Obviously the program disregards the placing of the minimaps
-sorts them, instead.
Is that normal behaviour ? Or caused, in some way which I do not
realize by the way I built the script and the filelist ?
Thanks, Avraham
-- 
Please avoid sending to this address attachments in excess of 2MByte, 
or any Excell or Powerpoint attachments.

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to