fix(fixtureavatar): fixcture auto avatar & timesession & font & menu & redirect #5

Merged
afornerot merged 4 commits from fixtureavatar into master 2022-10-04 16:53:59 +02:00
Showing only changes of commit 35e59f2e51 - Show all commits

View File

@ -202,8 +202,6 @@ class CropController extends AbstractController
$imageType = image_type_to_mime_type($imageType);
$newImageWidth = ceil($width * $scale);
$newImageHeight = ceil($height * $scale);
$newImageWidth = 900;
$newImageHeight = 900;
$newImage = imagecreatetruecolor($newImageWidth, $newImageHeight);
$source = null;
@ -214,7 +212,6 @@ class CropController extends AbstractController
case 'image/pjpeg':
case 'image/jpeg':
case 'image/jpg':
dump('here');
$source = imagecreatefromjpeg($image);
break;
case 'image/png':
@ -232,7 +229,6 @@ class CropController extends AbstractController
case 'image/pjpeg':
case 'image/jpeg':
case 'image/jpg':
dump($thumb_image_name);
imagejpeg($newImage, $thumb_image_name, 100);
break;
case 'image/png':