Skip to content

Commit

Permalink
Updated reademe
Browse files Browse the repository at this point in the history
  • Loading branch information
calcinai committed Aug 28, 2016
1 parent c31f298 commit 600ac7e
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,27 @@ be equivalent to the native ones.

This is a WIP, since the library is so massive - I'm looking at a way to parse the extension and auto-generate the code.


## Installation
With composer:

```
composer require calcinai/php-imagick
```


## Usage

Currently there is limited functionality, but it's built in a way that supports easy implementation of arguments.

A basic example:

```php
$image = new Imagick('~/sample.png');

$image->cropImage(190, 300, 350, 565);
$image->resizeImage(256, 350, Imagick::FILTER_CATROM, 0);

header("Content-Type: image/png");
echo $image->getImageBlob();
```

0 comments on commit 600ac7e

Please sign in to comment.