Closed crocone closed 6 years ago
You are using an old Imagine version. Please report issues only for the most recent version.
Im using 1.1.0 imagine version But error stayed PHP Warning 'yii\base\ErrorException' with message 'stream_get_contents(): supplied resource is not a valid stream resource'
in /*****l/vendor/imagine/imagine/src/Gd/Imagine.php:119
When you submitted this issue, you should have been presented this set of questions. Those questions are there for a reason: I need to be able to replicate your error using only Imagine code. Indeed, when you report the sample code
Image::frame($image, 5, '666', 0)
I don't know what's Image::frame
(it's not part of Imagine - it seems code from another library), and I don't know what $image
contains.
So, I really can't help you.
$new_image does not exist. Because it is created from the old file. (image)
Image::frame($image, 5, '666', 0)->rotate(-8)->save($new_image, ['jpeg_quality' => 50]);
Error: PHP Warning 'yii\base\ErrorException' with message 'stream_get_contents(): supplied resource is not a valid stream resource'
in /*****/vendor/imagine/imagine/lib/Imagine/Gd/Imagine.php:119