-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Description
Describe the bug
I have a large JPEG file which results in a white output file (with correct dimensions) after resizing. If I use Imagick directly from within PHP it works correctly (at least with the thumbnailImage method). Also when using the GD-driver, the results are as expected.
After more fiddling, even leaving the resize call out of it, results in a white image, see code sample below.
Code Example
Expected behavior
I expect the st-john2.jpg to have the same file size and content. Instead the original is ~25MB and the new version ~180kB
Images
I can provide the image using PB, due to copyright.
EDIT
This image has the same behaviour: http://pictures.4ever.eu/data/download/buildings/bridges/st-johns-bridge,-forest,-hill-245439.jpg?no-logo
\Intervention\Image\ImageManager::imagick()->read('st-john-xl.jpg')->save('st-john2.jpg');Environment (please complete the following information):
- PHP Version: 8.2.13
- OS: Docker (PHP-FPM)
- Intervention Image Version: 3.2.3
- Imagick 3.7.0 / ImageMagick 6.9.11-60 Q16 x86_64 2021-01-25