Using convert, how does one refer to an image in the image list? I'm aware that you can -clone a specific image in the stack (using "-clone 0" to copy the first image, for instance). But now suppose I want to use that image elsewhere, say as a -tile for -draw?
As an example, here's a convert command using an intermediate file "tile.png". convert -size 600x400 xc:white -tile tile.png -draw "polygon 50,50 550,350 50,350" filled.png The tile can be a built-in file, such as with ROSE: convert -size 600x400 xc:white -tile ROSE: -draw "polygon 50,50 550,350 50,350" filled.png But what about an image that is already in the stack? I'd like to do something like the following, where I am inventing IMAGE:0 as the syntax to refer to the first image. convert -size 600x400 xc:white ( -size 100x100 -fill blue -draw "polygon 50,10 10,90 90,10" ) -tile IMAGE:0 -draw "polygon 50,50 550,350 50,350" filled.png Is there something already like that in use in IM? (Something nags at me that there is.) One can almost achieve it using parenthetically generated images (I'm forever grateful for this), but some options, such as -tile, require an image name. So the following, for example, does NOT work: convert -size 600x400 xc:white ( -size 100x100 -fill blue -draw "polygon 50,10 10,90 90,10" ) -tile ( -draw "polygon 50,50 550,350 50,350" ) filled.png Rick Mabry Shreveport, LA _______________________________________________ Magick-users mailing list [email protected] http://studio.imagemagick.org/mailman/listinfo/magick-users
