fix(fixtureavatar): resolution crop
Cadoles/nineskeletor/pipeline/pr-master There was a failure building this commit
Details
Cadoles/nineskeletor/pipeline/pr-master There was a failure building this commit
Details
This commit is contained in:
parent
ffe8f2f722
commit
35e59f2e51
|
@ -202,8 +202,6 @@ class CropController extends AbstractController
|
||||||
$imageType = image_type_to_mime_type($imageType);
|
$imageType = image_type_to_mime_type($imageType);
|
||||||
$newImageWidth = ceil($width * $scale);
|
$newImageWidth = ceil($width * $scale);
|
||||||
$newImageHeight = ceil($height * $scale);
|
$newImageHeight = ceil($height * $scale);
|
||||||
$newImageWidth = 900;
|
|
||||||
$newImageHeight = 900;
|
|
||||||
$newImage = imagecreatetruecolor($newImageWidth, $newImageHeight);
|
$newImage = imagecreatetruecolor($newImageWidth, $newImageHeight);
|
||||||
$source = null;
|
$source = null;
|
||||||
|
|
||||||
|
@ -214,7 +212,6 @@ class CropController extends AbstractController
|
||||||
case 'image/pjpeg':
|
case 'image/pjpeg':
|
||||||
case 'image/jpeg':
|
case 'image/jpeg':
|
||||||
case 'image/jpg':
|
case 'image/jpg':
|
||||||
dump('here');
|
|
||||||
$source = imagecreatefromjpeg($image);
|
$source = imagecreatefromjpeg($image);
|
||||||
break;
|
break;
|
||||||
case 'image/png':
|
case 'image/png':
|
||||||
|
@ -232,7 +229,6 @@ class CropController extends AbstractController
|
||||||
case 'image/pjpeg':
|
case 'image/pjpeg':
|
||||||
case 'image/jpeg':
|
case 'image/jpeg':
|
||||||
case 'image/jpg':
|
case 'image/jpg':
|
||||||
dump($thumb_image_name);
|
|
||||||
imagejpeg($newImage, $thumb_image_name, 100);
|
imagejpeg($newImage, $thumb_image_name, 100);
|
||||||
break;
|
break;
|
||||||
case 'image/png':
|
case 'image/png':
|
||||||
|
|
Loading…
Reference in New Issue