Comment

Comment by ComputerGuru

FYI you can use ffmpeg to encode gif as h264/h265 mp4 videos of varying quality or convert to webm which can be played from an img tag, all of which will be orders of magnitude smaller.

Simplest form: ffmpeg -i foo.gif -c:v libx264 -crf 22 foo.mp4

You can vary crf to change the size to quality trade-off.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton