You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I expected to be a fallback option with original image, but it throws an error imagecreatefromjpeg(): gd-jpeg: JPEG library reports unrecoverable error: Not a JPEG file: starts with 0x89 0x50
It happens when PNG image was saved with .jpg extension (and vice versa). So in this case better solution is to use exif_imagetype function to determine real image type, instead of image extension.
The text was updated successfully, but these errors were encountered:
PHP 7.4.
I expected to be a fallback option with original image, but it throws an error
imagecreatefromjpeg(): gd-jpeg: JPEG library reports unrecoverable error: Not a JPEG file: starts with 0x89 0x50
It happens when PNG image was saved with .jpg extension (and vice versa). So in this case better solution is to use exif_imagetype function to determine real image type, instead of image extension.
The text was updated successfully, but these errors were encountered: