Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ojhaujjwal committed Aug 24, 2014
1 parent d67d33a commit a8230ad
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions docs/image-loaders.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,27 @@ $imageLoader = new HtImgModule\Imagine\Loader\SimpleFileSystemLoader('data/path/
$binary = $imageLoader->load('my-image.png');
```

This module can be used to load images by configuring like this:

```php
return [
'htimg' => [
'filters' => [
'my_filter' => [
'type' => 'filter_type',
'options' => [
// .....
'image_loader' => 'simple',
'loader_options' => [
'root_path' => 'data/images/uploads',
]
]
]
]
]
]
```

#### HtImgModule\Imagine\Loader\FileSystemLoader
This image loaders resolves full path of image using image resolver and loads the image.
```php
Expand Down

0 comments on commit a8230ad

Please sign in to comment.