Skip to content

Commit 35cbbaa

Browse files
committed
Use variable instead of function call
We already called those functions, no need to do it twice
1 parent 3899be3 commit 35cbbaa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

filters/filter.resize.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function run(\Image $res, $settings)
4545
$tmp = imagecreatetruecolor($dst_w, $dst_h);
4646
self::__fill($resource, $tmp, $settings['settings']['background']);
4747

48-
imagecopyresampled($tmp, $resource, 0, 0, 0, 0, $dst_w, $dst_h, Image::width($resource), Image::height($resource));
48+
imagecopyresampled($tmp, $resource, 0, 0, 0, 0, $dst_w, $dst_h, $src_w, $src_h);
4949

5050
if (is_resource($resource)) {
5151
imagedestroy($resource);

0 commit comments

Comments
 (0)