Isn’t jpegtran a command line utility? Just try to run it to find out if present. If your not sure where it would be use locate or find commands (provided you are in linux/bsd).
I was responding to the question about jpegtran being installed or not. For this PHP question, I suggest creating a new question in the PHP area of the forum.