mirror of
https://github.com/Intervention/image.git
synced 2025-08-31 09:31:53 +02:00
Imagick encoder resolves to getImagesBlob
This commit is contained in:
@@ -25,7 +25,7 @@ class Encoder extends \Intervention\Image\AbstractEncoder
|
|||||||
$imagick->setCompressionQuality($this->quality);
|
$imagick->setCompressionQuality($this->quality);
|
||||||
$imagick->setImageCompressionQuality($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->setCompression($compression);
|
||||||
$imagick->setImageCompression($compression);
|
$imagick->setImageCompression($compression);
|
||||||
|
|
||||||
return (string) $imagick;
|
return $imagick->getImagesBlob();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -63,7 +63,7 @@ class Encoder extends \Intervention\Image\AbstractEncoder
|
|||||||
$imagick->setCompression($compression);
|
$imagick->setCompression($compression);
|
||||||
$imagick->setImageCompression($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->setCompressionQuality($this->quality);
|
||||||
$imagick->setImageCompressionQuality($this->quality);
|
$imagick->setImageCompressionQuality($this->quality);
|
||||||
|
|
||||||
return (string) $imagick;
|
return $imagick->getImagesBlob();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@@ -168,7 +168,7 @@ class EncoderTest extends PHPUnit_Framework_TestCase
|
|||||||
$imagick->shouldReceive('setimagebackgroundcolor');
|
$imagick->shouldReceive('setimagebackgroundcolor');
|
||||||
$imagick->shouldReceive('setbackgroundcolor');
|
$imagick->shouldReceive('setbackgroundcolor');
|
||||||
$imagick->shouldReceive('mergeimagelayers')->andReturn($imagick);
|
$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;
|
return $imagick;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user