I\' am getting this error when use imagecreatefromjpeg function.
imagecreatefromjpeg
Warning: imagecreatefromjpeg(): gd-jpeg, libjpeg: recoverable error: Invalid SO
You can ignore the error with
ini_set ('gd.jpeg_ignore_warning', 1);
(this is the default since PHP 7.1, but not in older versions)
See http://php.net/manual/en/image.configuration.php