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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user