php-imagine / Imagine

PHP Object Oriented image manipulation library
https://imagine.readthedocs.io
Other
4.42k stars 530 forks source link

Unable to open remote jpg image #833

Open malanciault opened 2 years ago

malanciault commented 2 years ago

Issue description

Unable to open remote jpg image, while the remote image does exists. No problem with png images, just jpg images.

What version of Imagine are you using?

1.3.2

What's the PHP version you are using?

7.4.29

What's the imaging library you are using [gd/imagick/gmagick/any]?

GD

What's the imaging library configuration

GD Support => enabled GD headers Version => 2.3.3 GD library Version => 2.3.3 FreeType Support => enabled FreeType Linkage => with freetype GIF Read Support => enabled GIF Create Support => enabled JPEG Support => enabled PNG Support => enabled WBMP Support => enabled XPM Support => enabled XBM Support => enabled WebP Support => enabled BMP Support => enabled TGA Read Support => enabled

Directive => Local Value => Master Value gd.jpeg_ignore_warning => 1 => 1

Minimal PHP code to reproduce the error:

$imagine = new \Imagine\Gd\Imagine();
$image = 'https://illuxi-v3.s3.amazonaws.com/virtual_event/boot/ASSTSAS-759-FR.jpg';
$image = $imagine->open($image);
malanciault commented 2 years ago

I found the problem. JPEG support was not enabled for GD. All good thanks