From fccc61744586829f5c341e838b89445797248183 Mon Sep 17 00:00:00 2001 From: Jan BELLON Date: Tue, 12 Mar 2024 09:07:41 +0000 Subject: [PATCH] Update file compte.php --- html/compte.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/html/compte.php b/html/compte.php index bfd78f2f..aa6a0ba9 100644 --- a/html/compte.php +++ b/html/compte.php @@ -54,6 +54,8 @@ if (isset($_FILES['profile_picture']) && $_FILES['profile_picture']['error'] == $webPath = $root . $path; // Redimensionnement de l'image + list($width, $height) = getimagesize($tempPath); + $newWidth = 128; $newHeight = 128; $imageResized = imagecreatetruecolor($newWidth, $newHeight);