Compose and tile animated gif with a photo

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
gregory
Posts: 67
Joined: 2009-08-02T17:20:23-07:00
Authentication code: 8675309

Compose and tile animated gif with a photo

Post by gregory »

Hello,

I have a small transparent animated gif and would like to compose it with a bigger gif/jpeg/png photo.
I tried to use "composite" tool using the following command but got "invalid colormap index" error:
composite transp_animation.gif photo.gif result.gif

I also found the following example but it doesn't have "tile" option and just put the animation into the center of the photo:
convert -size 300x200 photo.gif null: \( transp_animation.gif -coalesce \) -gravity Center -layers Composite -layers Optimize

Could you please help me? I need to tile animated gif on a photo.
Thanks in advance!
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Compose and tile animated gif with a photo

Post by anthony »

What are you wanting to tile, the background picture or the forground animation.

For the background see 'tilinng images
http://www.imagemagick.org/Usage/canvas/#tile

for the foreground animatoion see.. 'Glitter Tiles'
http://www.imagemagick.org/Usage/anim_m ... tter_tiles

The latter uses a 'distort' technique from the former. This works with a multiple images, so can be used with coalesced animations.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
gregory
Posts: 67
Joined: 2009-08-02T17:20:23-07:00
Authentication code: 8675309

Re: Compose and tile animated gif with a photo

Post by gregory »

Okay, thank you, I'll try))
gregory
Posts: 67
Joined: 2009-08-02T17:20:23-07:00
Authentication code: 8675309

Re: Compose and tile animated gif with a photo

Post by gregory »

Thanks! It works. :-)
Post Reply