How to combine two or more GIFs with possibly varying framerates? #1528
-
Hello, I am writing a bit of code which allows two or more arbitrary images to be drawn next to each other. Doing it with still images (png, bmp, jpeg) works just fine, but I am curious how it would be done with GIFs? Especially ones where the framerate may be different. My goal is to have
Where the images are right next to one another in a single image. Surely it's more complex than just drawing the input images onto a "canvas" image and then saving as GIF? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 9 replies
-
Combine a new image framewise + dig out this property, and get/set it per each frame: (Sorry for the overly short comment, only had 1 minute.) |
Beta Was this translation helpful? Give feedback.
Combine a new image framewise + dig out this property, and get/set it per each frame:
https://docs.sixlabors.com/api/ImageSharp/SixLabors.ImageSharp.Formats.Gif.GifFrameMetadata.html#SixLabors_ImageSharp_Formats_Gif_GifFrameMetadata_FrameDelay
(Sorry for the overly short comment, only had 1 minute.)