Skip to content

Commit

Permalink
Fix int
Browse files Browse the repository at this point in the history
  • Loading branch information
zertex committed Feb 18, 2023
1 parent 1caa4cf commit 87a0c79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Avatar.php
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,8 @@ private function thumb($img, $width, $height)
imagesavealpha( $img, true );
imagecopyresampled($virtual,
$img,
0 - ($new_width - $width) / 2,
0 - ($new_height - $height) / 2,
0 - (int) ($new_width - $width) / 2,
0 - (int) ($new_height - $height) / 2,
0, 0,
$new_width, $new_height,
$origin_width, $origin_height);
Expand Down

0 comments on commit 87a0c79

Please sign in to comment.