1
0
mirror of https://github.com/Intervention/image.git synced 2025-09-02 10:23:29 +02:00

Merge pull request #1149 from nztim/master

Explicitly convert to integer
This commit is contained in:
Oliver Vogel
2022-04-19 19:58:11 +02:00
committed by GitHub

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
);