mirror of
https://github.com/Intervention/image.git
synced 2025-08-18 11:41:17 +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);
|
return new Image($animation->imagick);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritdoc}
|
||||||
|
*
|
||||||
|
* @see FactoryInterface::newCore()
|
||||||
|
*/
|
||||||
public function newCore(int $width, int $height)
|
public function newCore(int $width, int $height)
|
||||||
{
|
{
|
||||||
$imagick = new Imagick();
|
$imagick = new Imagick();
|
||||||
@@ -68,6 +73,7 @@ class ImageFactory implements FactoryInterface
|
|||||||
$imagick->setType(Imagick::IMGTYPE_UNDEFINED);
|
$imagick->setType(Imagick::IMGTYPE_UNDEFINED);
|
||||||
$imagick->setImageType(Imagick::IMGTYPE_UNDEFINED);
|
$imagick->setImageType(Imagick::IMGTYPE_UNDEFINED);
|
||||||
$imagick->setColorspace(Imagick::COLORSPACE_RGB);
|
$imagick->setColorspace(Imagick::COLORSPACE_RGB);
|
||||||
|
$imagick->setImageResolution(96, 96);
|
||||||
|
|
||||||
return $imagick;
|
return $imagick;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user