Is Netpbm installed on shared servers? What is the path?

Yes, Netpbm (http://netpbm.sourceforge.net/) is installed and the binaries are available at this path:

/usr/local/netpbm/bin/

Note: they are not available from restricted shell, however your script can use them.