Per quanto ho potuto verificare, l'istruzione
$src_img = imagecreatefromjpeg($src_file);
restituisce un errore