pamtogif: 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/pamtogif - from package: netpbm-progs

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