mirror of
https://github.com/HaschekSolutions/pictshare.git
synced 2025-11-11 18:56:21 +00:00
more minot php8 warning fixes
This commit is contained in:
@@ -91,14 +91,14 @@ function rotate(&$im,$direction)
|
||||
if ($height > $width)
|
||||
{
|
||||
$ratio = $maxheight / $height;
|
||||
$newheight = $maxheight;
|
||||
$newwidth = $width * $ratio;
|
||||
$newheight = intval($maxheight);
|
||||
$newwidth = intval($width * $ratio) ;
|
||||
}
|
||||
else
|
||||
{
|
||||
$ratio = $maxwidth / $width;
|
||||
$newwidth = $maxwidth;
|
||||
$newheight = $height * $ratio;
|
||||
$newwidth = intval($maxwidth) ;
|
||||
$newheight = intval($height * $ratio);
|
||||
}
|
||||
|
||||
$newimg = imagecreatetruecolor($newwidth,$newheight);
|
||||
|
||||
Reference in New Issue
Block a user