Closed amitdo closed 2 years ago
I closed this issue because I got no feedback for 3 weeks.
Hi Dan,
It turns out you found the way to detect animated gif back in May 2021.
https://github.com/DanBloomberg/leptonica/commit/9d6265f796b7692e93d6bdabde9f35932f758588.patch
Leptonica warns the user if the given gif is animered gif, and process the first page only.
Maybe a better way to handle animated gif is to reject the whole gif file with a proper error message?
I agree. Thanks Amit. The change has been submitted.
Hi Dan,
https://github.com/tesseract-ocr/tesseract/issues/3369#issuecomment-809680986
Maybe this example from webp can help:
https://github.com/webmproject/libwebp/blob/36a6eea3bc2871c7f0166193a6fa42241af4a464/examples/gif2webp.c#L275