diff --git a/src/Drivers/Gd/Modifiers/ResolutionModifier.php b/src/Drivers/Gd/Modifiers/ResolutionModifier.php index c33cf2d50..404e6a2bc 100644 --- a/src/Drivers/Gd/Modifiers/ResolutionModifier.php +++ b/src/Drivers/Gd/Modifiers/ResolutionModifier.php @@ -14,8 +14,11 @@ public function __construct(protected float $x, protected float $y) public function apply(ImageInterface $image): ImageInterface { + $x = intval(round($this->x)); + $y = intval(round($this->y)); + foreach ($image as $frame) { - imageresolution($frame->core(), $this->x, $this->y); + imageresolution($frame->core(), $x, $y); } return $image;