FOSS Linux published a tutorial about how to create an animated GIF on Ubuntu.
How to create a animated GIF on Ubuntu
We have looked at four tools that you can use to create animated GIFs easily in your Ubuntu system. It should work on Linux Mint and other Debian-based distros.
How to create a animated GIF on Ubuntu | FOSS Linux