Fixed via #1220. You'll need to manually sync this diff into your Docker Compose setup for GIFs to work properly on the latest Docker images (hoping we can make the introduction of a new service like this smoother in the future).
If you haven't modified your Compose file, you can also just replace the existing one with the latest one from HEAD:
Thread
Comment by Hampus