mirror of
https://github.com/Intervention/image.git
synced 2025-08-29 16:50:07 +02:00
Fix type conversion with GD drivers image resolution
This commit is contained in:
@@ -14,8 +14,11 @@ class ResolutionModifier implements ModifierInterface
|
|||||||
|
|
||||||
public function apply(ImageInterface $image): ImageInterface
|
public function apply(ImageInterface $image): ImageInterface
|
||||||
{
|
{
|
||||||
|
$x = intval(round($this->x));
|
||||||
|
$y = intval(round($this->y));
|
||||||
|
|
||||||
foreach ($image as $frame) {
|
foreach ($image as $frame) {
|
||||||
imageresolution($frame->core(), $this->x, $this->y);
|
imageresolution($frame->core(), $x, $y);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $image;
|
return $image;
|
||||||
|
Reference in New Issue
Block a user