apng2gif command not found

In this troubleshooting guide we learn how to fix apng2gif command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

apng2gif: command not found

or when using sudo you get the following error message

sudo: apng2gif: command not found

Solutions to apng2gif: command not found

How To Fix apng2gif: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu apng2gif is provided by apng2gif package.

apng2gif is:

This package provides a command line tool for converting images from Animated PNG to animated GIF format.

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.

To fix this problem, we can install more using the command below.

sudo apt-get -y install apng2gif

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install apng2gif.

sudo apt -y install apng2gif

Or if you have aptitude installed you can use the following command.

sudo aptitude install apng2gif

Summary

In this tutorial we learn how to fix apng2gif command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.