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