Switched over to resampled image resize. This will improve image quality of resized images dramatically

This commit is contained in:
Christian Haschek
2015-11-06 12:24:04 +01:00
parent e0efec6f07
commit 7f73b0ecbe

2
classes/image.php Normal file → Executable file
View File

@@ -128,7 +128,7 @@ class Image
imagesavealpha($newimg,true); imagesavealpha($newimg,true);
imagealphablending($newimg, true); imagealphablending($newimg, true);
imagecopyresized($newimg, $img, 0, 0, 0, 0, $newwidth, $newheight, $width, $height); imagecopyresampled($newimg, $img, 0, 0, 0, 0, $newwidth, $newheight, $width, $height);
$img = $newimg; $img = $newimg;
} }