"unknown JFIF revision number" with native imagecreatefromjpeg function

2.1k Views Asked by At

When I'm trying to save an image using the native php function imagecreatefromjpeg sometimes I have the following error:

gd-jpeg, libjpeg: recoverable error: Warning: unknown JFIF revision number 2.01

What I understand (I could be wrong) is that the JFIF version is higher than the one supported by the native php function.

How could I process the image or at least fail gracefully? (Today the page is showing a HTTP 500 error)

0

There are 0 best solutions below