Page 1 of 1

Re: How to rotate and overlay

Posted: 2007-10-13T08:43:22-07:00
by dmafackler
Not tested, but perhaps a lead to follow:

composite -compose atop -geometry 150x150+13+17 \
rose-0.jpg -rotate 45 -transparent-color white \
rose.jpg \
overlay3.jpg

composite -compose atop -geometry 150x150+13+17 \
rose-0.jpg -rotate 45 -transparent-color transparent \
rose.jpg \
overlay3.jpg


Sources:

http://www.imagemagick.org/script/comma ... php#rotate
indicates background color can be set to take care of the corners.

Composite has a "-transparent-color" option.

identify -list color
shows named color definitions as shipped with ImageMagick.

white = rgb(255,255,255)
Identified as an 8-bit/channel triplet.

transparent = rgba(0,0,0,1)
Uses alpha (aka matte, mask) channel

Re: How to rotate and overlay

Posted: 2007-10-16T18:07:45-07:00
by anthony
Actually if you had read IM Examples, set "-matte -background none" before the rotate!