Had to fight with this error message:
imagecreatefromjpeg(): gd-jpeg: JPEG library reports unrecoverable error
and found, that some picture tools like GIMP are adding EXIF-Informantions about changes.
Those pictures are running in the above problem.
Using an easy picture tool like Windows Paint - save the image new - and imagecreatefromjpeg worked for me.