mirror of
https://github.com/HaschekSolutions/pictshare.git
synced 2025-11-14 12:08: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);
|
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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user