1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 05:50:42 +02:00

[ticket/15769] Remove PHP side for resizing avatars

PHPBB3-15769
This commit is contained in:
Marc Alexander
2021-08-23 19:32:40 +02:00
parent 27c5f61e30
commit 30b058d633
2 changed files with 0 additions and 267 deletions

View File

@@ -157,14 +157,6 @@ class upload extends \phpbb\avatar\driver\driver
return false;
}
// Lets try to crop the avatar
$data = $request->variable('avatar_cropper_data', '', true);
if (!empty($upload_file['name']) && $data && image_cropper::is_file_supported($file))
{
image_cropper::crop_file_by_data($file, json_decode(htmlspecialchars_decode($data, ENT_COMPAT), true));
}
$filedata = array(
'filename' => $file->get('filename'),
'filesize' => $file->get('filesize'),