mirror of
https://github.com/Intervention/image.git
synced 2025-08-17 11:20:44 +02:00
Set resolution for new images with Imagick driver
This commit is contained in:
@@ -61,6 +61,11 @@ class ImageFactory implements FactoryInterface
|
||||
return new Image($animation->imagick);
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*
|
||||
* @see FactoryInterface::newCore()
|
||||
*/
|
||||
public function newCore(int $width, int $height)
|
||||
{
|
||||
$imagick = new Imagick();
|
||||
@@ -68,6 +73,7 @@ class ImageFactory implements FactoryInterface
|
||||
$imagick->setType(Imagick::IMGTYPE_UNDEFINED);
|
||||
$imagick->setImageType(Imagick::IMGTYPE_UNDEFINED);
|
||||
$imagick->setColorspace(Imagick::COLORSPACE_RGB);
|
||||
$imagick->setImageResolution(96, 96);
|
||||
|
||||
return $imagick;
|
||||
}
|
||||
|
Reference in New Issue
Block a user