123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143 |
- <?php
-
- return [
-
- 'image_manipulation' => [
-
- /*
- |--------------------------------------------------------------------------
- | Route Prefix
- |--------------------------------------------------------------------------
- |
- | The route prefix for serving HTTP based manipulated images through Glide.
- | If using the cached option, this should be the URL of the cached path.
- |
- */
-
- 'route' => 'img',
-
- /*
- |--------------------------------------------------------------------------
- | Require Glide security token
- |--------------------------------------------------------------------------
- |
- | With this option enabled, you are protecting your website from mass image
- | resize attacks. You will need to generate tokens using the Glide tag
- | but may want to disable this while in development to tinker.
- |
- */
-
- 'secure' => true,
-
- /*
- |--------------------------------------------------------------------------
- | Image Manipulation Driver
- |--------------------------------------------------------------------------
- |
- | The driver that will be used under the hood for image manipulation.
- | Supported: "gd" or "imagick" (if installed on your server)
- |
- */
-
- 'driver' => 'gd',
-
- /*
- |--------------------------------------------------------------------------
- | Save Cached Images
- |--------------------------------------------------------------------------
- |
- | Enabling this will make Glide save publicly accessible images. It will
- | increase performance at the cost of the dynamic nature of HTTP based
- | image manipulation. You will need to invalidate images manually.
- |
- */
-
- 'cache' => false,
- 'cache_path' => public_path('img'),
-
- /*
- |--------------------------------------------------------------------------
- | Image Manipulation Presets
- |--------------------------------------------------------------------------
- |
- | Rather than specifying your manipulation params in your templates with
- | the glide tag, you may define them here and reference their handles.
- | They will also be automatically generated when you upload assets.
- |
- */
-
- 'presets' => [
- // 'small' => ['w' => 200, 'h' => 200, 'q' => 75, 'fit' => 'crop'],
- ],
-
- ],
-
- /*
- |--------------------------------------------------------------------------
- | Auto-Crop Assets
- |--------------------------------------------------------------------------
- |
- | Enabling this will make Glide automatically crop assets at their focal
- | point (at the center if no focal point is defined). Otherwise,
- | you will need to manually add any crop related parameters.
- |
- */
-
- 'auto_crop' => true,
-
- /*
- |--------------------------------------------------------------------------
- | Control Panel Thumbnail Restrictions
- |--------------------------------------------------------------------------
- |
- | Thumbnails will not be generated for any assets any larger (in either
- | axis) than the values listed below. This helps prevent memory usage
- | issues out of the box. You may increase or decrease as necessary.
- |
- */
-
- 'thumbnails' => [
- 'max_width' => 10000,
- 'max_height' => 10000,
- ],
-
- /*
- |--------------------------------------------------------------------------
- | File Previews with Google Docs
- |--------------------------------------------------------------------------
- |
- | Filetypes that cannot be rendered with HTML5 can opt into the Google Docs
- | Viewer. Google will get temporary access to these files so keep that in
- | mind for any privacy implications: https://policies.google.com/privacy
- |
- */
-
- 'google_docs_viewer' => false,
-
- /*
- |--------------------------------------------------------------------------
- | Cache Metadata
- |--------------------------------------------------------------------------
- |
- | Asset metadata (filesize, dimensions, custom data, etc) will get cached
- | to optimize performance, so that it will not need to be constantly
- | re-evaluated from disk. You may disable this option if you are
- | planning to continually modify the same asset repeatedly.
- |
- */
-
- 'cache_meta' => true,
-
- /*
- |--------------------------------------------------------------------------
- | Focal Point Editor
- |--------------------------------------------------------------------------
- |
- | When editing images in the Control Panel, there is an option to choose
- | a focal point. When working with third-party image providers such as
- | Cloudinary it can be useful to disable Statamic's built-in editor.
- |
- */
-
- 'focal_point_editor' => true,
- ];
|