Fixed stupid conversions.

This commit is contained in:
flash 2022-03-19 19:53:44 +00:00
parent 59edead442
commit 95610cb3ef

View file

@ -47,8 +47,8 @@ abstract class Image {
$this->resize($targetWidth, $targetHeight);
$this->crop(
$dimensions, $dimensions,
($targetWidth - $dimensions) / 2,
($targetHeight - $dimensions) / 2
ceil(($targetWidth - $dimensions) / 2),
ceil(($targetHeight - $dimensions) / 2)
);
$this->setPage($dimensions, $dimensions, 0, 0);
} while($this->next());