Skip to content

Commit

Permalink
Merge pull request #197 from toyi/master
Browse files Browse the repository at this point in the history
Fix the exif_read_data error with PHP 8
  • Loading branch information
weotch committed Mar 19, 2021
2 parents a58b6c7 + f9aee16 commit ccec1bf
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/Bkwld/Croppa/Image.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,11 @@ public function applyFilters($options) {
* @return $this
*/
public function autoRotate() {
$this->thumb->rotateJpg();
return $this;
try {
$this->thumb->rotateJpg();
} finally {
return $this;
}
}

/**
Expand Down

0 comments on commit ccec1bf

Please sign in to comment.