Skip to content

Commit

Permalink
Update usage
Browse files Browse the repository at this point in the history
  • Loading branch information
odan committed Jun 13, 2019
1 parent 85c60f3 commit cdb76e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ use Selective\ImageType\ImageTypeDetector;
$file = new SplFileInfo('example.jpg');

$imageTypeDetector = new ImageTypeDetector();
echo $imageTypeDetector->getImageTypeFromFile($file); // jpeg
echo $imageTypeDetector->getImageTypeFromFile($file)->toString(); // jpeg
```

## Similar libraries
Expand All @@ -45,4 +45,4 @@ echo $imageTypeDetector->getImageTypeFromFile($file); // jpeg

## License

* MIT
* MIT

0 comments on commit cdb76e7

Please sign in to comment.