Install apngopt by entering the following commands in the terminal:
sudo apt update sudo apt install apngopt
optimize APNG animated images
Optimize APNG files by reducing their file size. . The Animated Portable Network Graphics (APNG) file format is an extension to the Portable Network Graphics (PNG) specification. It allows for animated PNG files that work similarly to animated GIF files, while retaining backward compatibility with non-animated PNG files and adding support for 8-bit transparency and 24-bit images.