feat: support GIF image decoding - #12
Conversation
- register standard library image/gif decoder in imageutil - support static and animated GIFs, extracting frame 0 for analysis - add rose.gif test fixture and unit tests for static and animated GIFs - update README and CONTRIBUTING documentation
AutogravityProject ID: Tip Storage files get ClamAV malware scanning and encryption by default |
|
- check distinguishing pixel in TestDecodeAnimatedGIF to verify frame 0 is selected
|
Hey I wanted to say this autogravity is a simple but great feature for someone to have!! I also noticed how multiple focal point in a same image was managed and I think it might be worth adding a rich api to handle these kind of issues, but also saw there was a pr referring to the same issue which made me think twice. |

Summary
_ "image/gif"format decoder ininternal/imageutil.gifformat inDecode, enabling both static and animated GIFs (using frame 0 for analysis).rose.giffixture (28 KB) generated fromrose.pngto automatically exercise multipart, raw, and truncated test coverage acrossfixtures_test.go.image_test.gocovering static palette decoding and multi-frame animated GIF decoding.README.mdandCONTRIBUTING.mdto reflect GIF format support.Validation
make testpasses with all packages green (cmd/autogravity,internal/imageutil,internal/gravity,internal/facedetection,internal/saliency).