Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
marc1706 committed Aug 21, 2015
1 parent 55616e5 commit 7c29d2c
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 7c29d2c

Please sign in to comment.