How are animated GIFs handled by the Azure Content Safety API?

Matt C 76 Reputation points
2025-03-27T16:31:06.28+00:00

We're using the Azure Content Safety API to scan images for inappropriate content.

I'm wondering how animated GIFs are handled? I can see the GIF gets processed and returns a score, but is it checking all frames within the GIF?

0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Matt C 76 Reputation points
    2025-04-02T15:00:52.1966667+00:00

    I'm following up after some testing I've done; it looks as though only the 1st frame of an animated GIF is assessed by the content safety API, which isn't ideal!

    I'd like someone from the Microsoft team to take this on as an improvement request; it really should go beyond just the 1st frame, possible unpacking it into a sprite map if internally it doesn't want to analyse each frame individually.

    Can anyone from MS comment on this please?

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.