1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-29 16:50:07 +02:00

Imagick encoder resolves to getImagesBlob

This commit is contained in:
Oliver Vogel
2014-05-25 14:58:32 +02:00
parent cf4ba6b086
commit 2582007a17
2 changed files with 5 additions and 5 deletions

View File

@@ -25,7 +25,7 @@ class Encoder extends \Intervention\Image\AbstractEncoder
$imagick->setCompressionQuality($this->quality);
$imagick->setImageCompressionQuality($this->quality);
return (string) $imagick;
return $imagick->getImagesBlob();
}
/**
@@ -44,7 +44,7 @@ class Encoder extends \Intervention\Image\AbstractEncoder
$imagick->setCompression($compression);
$imagick->setImageCompression($compression);
return (string) $imagick;
return $imagick->getImagesBlob();
}
/**
@@ -63,7 +63,7 @@ class Encoder extends \Intervention\Image\AbstractEncoder
$imagick->setCompression($compression);
$imagick->setImageCompression($compression);
return (string) $imagick;
return $imagick->getImagesBlob();
}
/**
@@ -84,7 +84,7 @@ class Encoder extends \Intervention\Image\AbstractEncoder
$imagick->setCompressionQuality($this->quality);
$imagick->setImageCompressionQuality($this->quality);
return (string) $imagick;
return $imagick->getImagesBlob();
}
}

View File

@@ -168,7 +168,7 @@ class EncoderTest extends PHPUnit_Framework_TestCase
$imagick->shouldReceive('setimagebackgroundcolor');
$imagick->shouldReceive('setbackgroundcolor');
$imagick->shouldReceive('mergeimagelayers')->andReturn($imagick);
$imagick->shouldReceive('__toString')->once()->andReturn(sprintf('mock-%s', $type));
$imagick->shouldReceive('getimagesblob')->once()->andReturn(sprintf('mock-%s', $type));
return $imagick;
}