Skip to content

Commit

Permalink
Fixes #35
Browse files Browse the repository at this point in the history
  • Loading branch information
claviska committed Feb 18, 2014
1 parent 9d0c1a4 commit 1307719
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/abeautifulsite/SimpleImage.php
Original file line number Diff line number Diff line change
Expand Up @@ -1029,8 +1029,8 @@ function thumbnail($width, $height = null) {
} else {
$this->fit_to_width($width);
}
$left = ($this->width / 2) - ($width / 2);
$top = ($this->height / 2) - ($height / 2);
$left = floor(($this->width / 2) - ($width / 2));
$top = floor(($this->height / 2) - ($height / 2));

// Return trimmed image
return $this->crop($left, $top, $width + $left, $height + $top);
Expand Down

0 comments on commit 1307719

Please sign in to comment.