1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-28 16:19:50 +02:00

Fix type conversion with GD drivers image resolution

This commit is contained in:
Oliver Vogel
2023-10-28 10:48:58 +02:00
parent 0f846ce173
commit 63fd3d5fca

View File

@@ -14,8 +14,11 @@ class ResolutionModifier implements ModifierInterface
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;