Use imagecreatefromstring when imagecreatefromjpeg fail
Use imagecreatefromstring when imagecreatefromjpeg fail

For some image the function 'imagecreatefromstring' does'nt work beacause the image is in violation with the jpeg spec. 
https://stackoverflow.com/questions/35337709/invalid-sos-parameters-for-sequential-jpeg/43271528#43271528
Intervention/image