mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 10:38:45 +02:00
N°7461 - Portal: import user photo don't like some pictures with PHP>=8.1
This commit is contained in:
@@ -2226,8 +2226,8 @@ SQL;
|
||||
|
||||
$fScale = min($iMaxImageWidth / $iWidth, $iMaxImageHeight / $iHeight);
|
||||
|
||||
$iNewWidth = $iWidth * $fScale;
|
||||
$iNewHeight = $iHeight * $fScale;
|
||||
$iNewWidth = floor($iWidth * $fScale);
|
||||
$iNewHeight = floor($iHeight * $fScale);
|
||||
|
||||
$new = imagecreatetruecolor($iNewWidth, $iNewHeight);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user