Fixed stupid conversions.
This commit is contained in:
parent
59edead442
commit
95610cb3ef
1 changed files with 2 additions and 2 deletions
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue