Permalink
Browse files

Add docs for new crop filter

  • Loading branch information...
1 parent bf0c349 commit 151e1f1b8e9611bb5ea935e8aaf4c437949a9e03 @ardianys ardianys committed Feb 21, 2013
Showing with 13 additions and 1 deletion.
  1. +13 −1 README.md
View
@@ -313,6 +313,18 @@ avalanche_imagine:
```
+### Crop
+
+The `crop` filter crop an image with start coordinate, and size dimension.
+
+``` yaml
+avalanche_imagine:
+ filters:
+ crop:
+ type : crop
+ options: { start: [0, 0], size: [100, 100] } #crop image with 100x100 square box
+```
+
## Load your Custom Filters
The ImagineBundle allows you to load your own custom filter classes. The only
@@ -369,4 +381,4 @@ $avalancheService = $this->get('imagine.cache.path.resolver');
Then, call the getBrowserPath and pass the original image webpath and the filter you want to use
```php
$cachedImage = $avalancheService->getBrowserPath($object->getWebPath(), 'my_thumb');
-```
+```

0 comments on commit 151e1f1

Please sign in to comment.