-
Notifications
You must be signed in to change notification settings - Fork 80
Configuration options
mikeritter edited this page Jul 29, 2014
·
4 revisions
You can configure Image by editing the options in the app/config/packages/folklore/image/config.php file.
Here is a list of all possible options:
| Option | Value | Default | Description |
|---|---|---|---|
| driver |
'gd' or'imagick' or 'gmagick'
|
'gd' |
The driver that should be used by the Imagine library to manipulate the images. |
| host | string | '' |
The http host where the image are served. Used by the Image::url() method to generate the right URL. |
| src_dirs | array | array(public_path()) |
A list of directories to look for images |
| url_parameter | string | '-image({options})' |
The URL parameter that will be appended to your image filename containing all the options for image manipulation. You have to put {options} where you want options to be placed. Keep in mind that this parameter is used in an url so all characters should be URL safe. |
| url_parameter_separator | string | '-' |
The URL parameter separator is used to build the parameters string that will replace {options} in url_parameter |
| serve_image | boolean | true |
If true, a route will automatically be added to catch request to image containing the URL parameter above. |
| serve_custom_filters_only | boolean | false |
Restrict options in url to custom filters only. This prevent direct manipulation of the image. |
| write_image | boolean | false |
When serving an image, write the manipulated image in the same directory as the original image so the next request will serve this static file |