Closed hizt closed 8 years ago
You just closed the issue. Maybe can you explain how did you solve it?
install "GD" extension for php
@Gregwar Maybe we can add a prevent error message for missing gd-extension library.
Actually, I was hoping this (https://github.com/Gregwar/Image/blob/master/composer.json#L16) would do the job
The problem is that these constants are in static initialization: https://github.com/Gregwar/Image/blob/master/Adapter/GD.php#L10
A solution would be defaulting it to null and populating it in the constructor (where the gd check and exception already exists)
Undefined constant 'IMG_JPG' FILE: vendor/gregwar/image/Gregwar/Image/Image.php LINE: 285
when php uninstall "GD" extension , but "Imagick" installed