Page 1 of 1

rotating layers composite image

Posted: 2007-08-23T07:25:06-07:00
by defied
Hello,

I'm looking to rotate an animated gif which I place on top of a jpeg file (with layers composite).
Right now I have this:

Image

The code I used:

Code: Select all

convert test.jpg null: \( top.gif -rotate -10 -sample 100x100 \) -gravity center -layers Composite test.gif
As you can see it gives a weird result. Is it possible to rotate the animated gif on top of the static jpeg file?

Thanks

Re: rotating layers composite image

Posted: 2007-08-23T19:57:40-07:00
by anthony
Add -background None before the -rotate!!!
See IM examples, Distorting Images
http://www.imagemagick.org/Usage/distorts/

Re: rotating layers composite image

Posted: 2007-08-24T05:17:39-07:00
by defied
anthony wrote:Add -background None before the -rotate!!!
See IM examples, Distorting Images
http://www.imagemagick.org/Usage/distorts/
Thank you Anthony, I must have looked over that.