1
0
mirror of https://github.com/Intervention/image.git synced 2025-09-01 18:02:45 +02:00

Explicitly convert to integer

This commit is contained in:
Tim
2022-04-04 08:30:36 +12:00
parent b734a4988b
commit 67d8ab1ab7

View File

@@ -44,7 +44,7 @@ class ResizeCommand extends AbstractCommand
protected function modify($image, $dst_x, $dst_y, $src_x, $src_y, $dst_w, $dst_h, $src_w, $src_h)
{
// create new image
$modified = imagecreatetruecolor($dst_w, $dst_h);
$modified = imagecreatetruecolor(intval($dst_w), intval($dst_h));
// get current image
$resource = $image->getCore();
@@ -70,8 +70,8 @@ class ResizeCommand extends AbstractCommand
$dst_y,
$src_x,
$src_y,
$dst_w,
$dst_h,
intval($dst_w),
intval($dst_h),
$src_w,
$src_h
);