I have hundeds of multi-line imagemagick scripts. Any one
script may involve all of cropping, pasting, appending, drawing,
annotating etc, etc.

However recently, it was discovered by accident that
command order matters even when intuitively, one may think
it should not. This now demands the review of many old scripts
for the potential introduction of artifacts not previously noticed.

One might think operating on one area of a canvas should not
effect another area, but it can.

The following is an example with drawing a straight line.

An image is to be positioned on a canvas.
A line is to be drawn on another area of the canvas.
If the line is drawn after positioning the image on the
canvas, the line is drawn on the canvas as expected, but
it is also drawn in the same relative position on the image.
If the line is drawn first and then the image is
positioned, the line appears only where it was first drawn.

One has to wonder if such behaviour is a feature, an oversight or bug?

convert -size 100x80 xc:lightblue A.gif           # Make a test image

convert -size 200x200 xc:yellow \
     \( A.gif -repage 0x0+100+0 \) \
        -draw 'line 0,40 50,40' \
     \( A.gif -repage 0x0+100+120 \) \
        -draw 'line 0,160 50,160' \
        -flatten \
        win:

Damien






_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to