Update thumbs.php for PHP 8

This commit is contained in:
Hani Rouatbi
2022-07-28 13:09:40 +02:00
committed by GitHub
parent bafa1b0fd3
commit ff4b22f0a8

View File

@@ -135,8 +135,8 @@ function helper_thumb($source_path, $ext, $dest_image, $dw, $dh)
);
// Copy cropped region from temporary image into the desired GD image
$x0 = ($temp_width - $dw) / 2;
$y0 = ($temp_height - $dh) / 2;
$x0 = (int) (($temp_width - $dw) / 2);
$y0 = (int) (($temp_height - $dh) / 2);
$desired_gdim = imagecreatetruecolor($dw, $dh);
imagecopy(