prova a guardare dal manuale questa funzione:

imagecreatefromjpeg

In piu' dovrebbero essere attive le estensioni GD

Ciao