mirror of
https://github.com/HaschekSolutions/pictshare.git
synced 2025-11-14 04:04:01 +00:00
Switched over to resampled image resize. This will improve image quality of resized images dramatically
This commit is contained in:
2
classes/image.php
Normal file → Executable file
2
classes/image.php
Normal file → Executable file
@@ -128,7 +128,7 @@ class Image
|
||||
imagesavealpha($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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user