php-imagine

opening image with Imagine gives 'An image could not be created from the given input'

浪尽此生 提交于 2019-12-11 07:16:23
问题 I'm using Imagine to resize images after uploading them with curl in /tmp : $_imagine = new \Imagine\Gd\Imagine(); $mode = \Imagine\Image\ImageInterface::THUMBNAIL_INSET; $image = $_imagine->open($path); // i.e $path = '/tmp/photo.jpg' // then resizing the $image It is working fine with any previously uploaded images in my /tmp , but when uploading this image http://newsimg.bbc.co.uk/media/images/67373000/jpg/_67373987_09f1654a-e583-4b5f-bfc4-f05850c6d3ce.jpg then trying to open it with