Skip to content

Commit

Permalink
Merge pull request #11 from marc1706/ticket/8
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
marc1706 committed Aug 21, 2015
2 parents 55616e5 + 7c29d2c commit 27467cf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,17 @@ Just add the following snippet to your composer.json:

### Usage

Using the fastImageSize library is rather straightforward. Just create a new instance of the main class:
Using the fast-image-size library is rather straightforward. Just create a new instance of the main class:
```
$fastImageSize = new \fastImageSize\fastImageSize();
$FastImageSize = new \FastImageSize\FastImageSize();
```

Afterwards, you can check images using the getImageSize() method:
```
$imageSize = $fastImageSize->getImageSize('https://example.com/some_random_image.jpg');
$imageSize = $FastImageSize->getImageSize('https://example.com/some_random_image.jpg');
```

You can pass any local or remote images to this library as long as it's readable.
You can pass any local or remote image to this library as long as it's readable.

If the library is able to determine the image size, it will return an array with the following structure (values and type might of course differ depending on your image):
```
Expand Down

0 comments on commit 27467cf

Please sign in to comment.