gd2topng: command not found

Have You tried accessing the binary with the full path?

Maybe Your $PATH variable doesn't contain the default paths? echo $PATH should give something like:

[root@server ~]# echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

If it's empty, You may set the PATH variable with this command

export PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin"

On CentOS possible default full paths are:

/usr/bin/gd2topng - from package: gd-progs

You may install the required package with command yum install {package}

On Debian possible default full paths are:

/usr/bin/gd2topng - from package: libgd-tools

You may install the required package with command apt-get install {package}
Error in other languages:
gd2topng: bevel nie gevind nie
gd2topng: comandă negăsită
gd2topng: comando não encontrado
gd2topng: commande introuvable
gd2topng: command not found
gd2topng: käsku ei ole
gd2topng: không tìm thấy lệnh
gd2topng: komanda nerasta
gd2topng: Kommando nicht gefunden.
gd2topng: kommandot finns inte
gd2topng: komut yok
gd2topng: nie znaleziono polecenia
gd2topng: níor aimsíodh an t-ordú
gd2topng: no se encontró la orden
gd2topng: no s'ha trobat l'ordre
gd2topng: opdracht niet gevonden
gd2topng: parancs nem található
gd2topng: perintah tidak ditemukan
gd2topng: príkaz nenájdený
gd2topng: příkaz nenalezen
gd2topng: команда не найдена
gd2topng: командата не е открита
gd2topng: 命令找不到
gd2topng: コマンドが見つかりません