Skip to content

Commit

Permalink
Fix invalid image warning (#275)
Browse files Browse the repository at this point in the history
  • Loading branch information
christiandavilakoobin authored Apr 20, 2021
1 parent 0fde9fe commit 21b6f4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/claviska/SimpleImage.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public function fromFile($file) {
fclose($handle);

// Get image info
$info = getimagesize($file);
$info = @getimagesize($file);
if($info === false) {
throw new \Exception("Invalid image file: $file", self::ERR_INVALID_IMAGE);
}
Expand Down

0 comments on commit 21b6f4b

Please sign in to comment.