Skip to content

Is it possible to composite GIFS over a base GIF? #3135

@EtDu

Description

@EtDu

Question about an existing feature

What are you trying to achieve?

Overlaying GIFS over a base GIF / merging multiple GIFs together.

tester

When you searched for similar issues, what did you find that might be related?

I've searched, but did not find an equivalent issue

Please provide a minimal, standalone code sample, without other dependencies, that demonstrates this question

const compositeGif = someGif.gif
const finalImage = await sharp(compositeGif, { animated: true }).composite([
 {
          input: gifBuffer1,
          tile: true
        },
{
          input: gifBuffer2,
          tile: true
        }
], {}).gif()

It appears that sharp is currently only capable of overlaying static images (PNG, JPEG) over a base GIF. Is there something I'm missing here?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions