mirror of
https://github.com/Intervention/image.git
synced 2025-08-30 09:10:21 +02:00
Update StreamCommand.php
https://docs.guzzlephp.org/en/stable/psr7.html#streams
This commit is contained in:
@@ -16,10 +16,10 @@ class StreamCommand extends AbstractCommand
|
||||
$format = $this->argument(0)->value();
|
||||
$quality = $this->argument(1)->between(0, 100)->value();
|
||||
|
||||
$this->setOutput(\GuzzleHttp\Psr7\stream_for(
|
||||
$this->setOutput(\GuzzleHttp\Psr7\Utils::streamFor(
|
||||
$image->encode($format, $quality)->getEncoded()
|
||||
));
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user