mirror of
https://github.com/Intervention/image.git
synced 2025-08-30 17:19:50 +02:00
identifyImage without raw output
This commit is contained in:
@@ -14,7 +14,7 @@ class GetSizeCommand extends \Intervention\Image\Commands\AbstractCommand
|
|||||||
*/
|
*/
|
||||||
public function execute($image)
|
public function execute($image)
|
||||||
{
|
{
|
||||||
$info = $image->getCore()->identifyImage(true);
|
$info = $image->getCore()->identifyImage();
|
||||||
|
|
||||||
$this->setOutput(new Size(
|
$this->setOutput(new Size(
|
||||||
$info['geometry']['width'],
|
$info['geometry']['width'],
|
||||||
|
@@ -25,7 +25,7 @@ class GetSizeCommandTest extends PHPUnit_Framework_TestCase
|
|||||||
public function testImagick()
|
public function testImagick()
|
||||||
{
|
{
|
||||||
$imagick = Mockery::mock('Imagick');
|
$imagick = Mockery::mock('Imagick');
|
||||||
$imagick->shouldReceive('identifyimage')->with(true);
|
$imagick->shouldReceive('identifyimage')->with();
|
||||||
$image = Mockery::mock('Intervention\Image\Image');
|
$image = Mockery::mock('Intervention\Image\Image');
|
||||||
$image->shouldReceive('getCore')->once()->andReturn($imagick);
|
$image->shouldReceive('getCore')->once()->andReturn($imagick);
|
||||||
$command = new GetSizeImagick(array());
|
$command = new GetSizeImagick(array());
|
||||||
|
Reference in New Issue
Block a user