Intervention / image

PHP Image Processing
https://image.intervention.io
MIT License
13.93k stars 1.5k forks source link

GD/Decoder: check for imagecreatefromjpeg function #1215

Closed glensc closed 11 months ago

glensc commented 1 year ago

ext-gd can be compiled without libjpeg support as well.

in fact, docker-php-ext-install gd in docker image does that unless reconfigured to use jpeg:

docker-php-ext-configure gd --with-jpeg
docker-php-ext-install gd

this MR adds a check not to fail with fatal error, but throw an exception