I am using phpimageworkshop to resize images but i am experiencing the following problem. Depending on my jpg file, the library works or doesn't work. To test it, i have the following code:
use PHPImageWorkshop\ImageWorkshop; /*http://phpimageworkshop.com/*/
require_once('lib/PHPImageWorkshop/ImageWorkshop.php');
$layer1 = ImageWorkshop::initFromPath('uploads/img1.jpg');
echo $layer1->getWidth();
$layer2 = ImageWorkshop::initFromPath('uploads/img2.jpg');
echo $layer2->getWidth();
it works fine with file img1.jpg, but it do not work with img2.jpg, the echo returns nothing. You can test with the following files: http://francois-deneuville.fr/stackoverflow/ do you know why?