Replies: 1 comment 4 replies
-
Hi @cakedan, Rather than encoding two frames the same, couldn't you just extend the duration of one frame? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Currently, by default, CGIF will drop identical frames from a gif. I just figured this out after using it with libvips for months now 😆. Is it possible to add the ability to disable this option?
The option is
CGIF_GEN_KEEP_IDENT_FRAMES
found here https://github.com/dloebl/cgif/blob/c234bc27d4012548faa13798c203219b59b77b09/inc/cgif.h#L17C9-L17C35 used here https://github.com/dloebl/cgif/blob/c234bc27d4012548faa13798c203219b59b77b09/src/cgif.c#L497Not sure if it goes in the frame config or cgif config found here
libvips/libvips/foreign/cgifsave.c
Line 620 in 6c397fb
Maybe have it be its own parameter in
gifsave
like "keep_duplicate_frames` which would be by default False?Would love this option as my discord bot kinda depends on duplicate frames not being dropped for some commands :D
Beta Was this translation helpful? Give feedback.
All reactions