Update file compte.php

This commit is contained in:
Jan BELLON 2024-03-12 09:07:41 +00:00
parent 33596f3823
commit fccc617445

View File

@ -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);