We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3899be3 commit 35cbbaaCopy full SHA for 35cbbaa
1 file changed
filters/filter.resize.php
@@ -45,7 +45,7 @@ public function run(\Image $res, $settings)
45
$tmp = imagecreatetruecolor($dst_w, $dst_h);
46
self::__fill($resource, $tmp, $settings['settings']['background']);
47
48
- imagecopyresampled($tmp, $resource, 0, 0, 0, 0, $dst_w, $dst_h, Image::width($resource), Image::height($resource));
+ imagecopyresampled($tmp, $resource, 0, 0, 0, 0, $dst_w, $dst_h, $src_w, $src_h);
49
50
if (is_resource($resource)) {
51
imagedestroy($resource);
0 commit comments