rotating layers composite image

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
defied

rotating layers composite image

Post 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
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: rotating layers composite image

Post by anthony »

Add -background None before the -rotate!!!
See IM examples, Distorting Images
http://www.imagemagick.org/Usage/distorts/
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
defied

Re: rotating layers composite image

Post 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.
Post Reply