mirror of
https://github.com/Intervention/image.git
synced 2025-09-03 02:42:45 +02:00
Merge pull request #1149 from nztim/master
Explicitly convert to integer
This commit is contained in:
@@ -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)
|
protected function modify($image, $dst_x, $dst_y, $src_x, $src_y, $dst_w, $dst_h, $src_w, $src_h)
|
||||||
{
|
{
|
||||||
// create new image
|
// create new image
|
||||||
$modified = imagecreatetruecolor($dst_w, $dst_h);
|
$modified = imagecreatetruecolor(intval($dst_w), intval($dst_h));
|
||||||
|
|
||||||
// get current image
|
// get current image
|
||||||
$resource = $image->getCore();
|
$resource = $image->getCore();
|
||||||
@@ -70,8 +70,8 @@ class ResizeCommand extends AbstractCommand
|
|||||||
$dst_y,
|
$dst_y,
|
||||||
$src_x,
|
$src_x,
|
||||||
$src_y,
|
$src_y,
|
||||||
$dst_w,
|
intval($dst_w),
|
||||||
$dst_h,
|
intval($dst_h),
|
||||||
$src_w,
|
$src_w,
|
||||||
$src_h
|
$src_h
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user