Invalid SOS parameters for sequential JPEG

前端 未结 2 882
花落未央
花落未央 2020-12-03 18:01

I\' am getting this error when use imagecreatefromjpeg function.

Warning: imagecreatefromjpeg(): gd-jpeg, libjpeg: recoverable error: Invalid SO         


        
2条回答
  •  温柔的废话
    2020-12-03 18:37

    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

提交回复
热议问题