optimizegraphics: 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

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/optimizegraphics - from package: kdesdk

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

On Debian possible default full paths are:

/usr/bin/optimizegraphics - from package: kdesdk-scripts

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