-
-
Notifications
You must be signed in to change notification settings - Fork 632
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b165dcd
commit 9b26ae4
Showing
4 changed files
with
77 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#liip_imagine: | ||
# | ||
# # valid drivers options include "gd" or "gmagick" or "imagick" | ||
# driver: "gd" | ||
# | ||
# # define your filter sets under this option | ||
# filter_sets: | ||
# | ||
# # an example thumbnail transformation definition | ||
# # http://symfony.com/doc/current/bundles/LiipImagineBundle/basic-usage.html#create-thumbnails | ||
# my_thumbnails: | ||
# | ||
# # set your image quality defaults | ||
# jpeg_quality: 85 | ||
# png_compression_level: 8 | ||
# | ||
# # setup the filter steps to apply for this transformation | ||
# filters: | ||
# | ||
# # auto rotate the image using EXIF metadata | ||
# auto_rotate: ~ | ||
# | ||
# # strip the image of all metadata | ||
# strip: ~ | ||
# | ||
# # scale and square the image to the given dimentions | ||
# thumbnail: | ||
# size: [253, 253] | ||
# mode: outbound | ||
# allow_upscale: true | ||
# | ||
# # create border by placing image on larger black background | ||
# background: | ||
# size: [256, 256] | ||
# position: center | ||
# color: '#fff' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
liip_imagine_filter: | ||
path: '/media/cache/resolve/{filter}/{path}' | ||
defaults: | ||
_controller: '%liip_imagine.controller.filter_action%' | ||
methods: | ||
- GET | ||
requirements: | ||
filter: '[A-z0-9_\-]*' | ||
path: .+ | ||
|
||
liip_imagine_filter_runtime: | ||
path: '/media/cache/resolve/{filter}/rc/{hash}/{path}' | ||
defaults: | ||
_controller: '%liip_imagine.controller.filter_runtime_action%' | ||
methods: | ||
- GET | ||
requirements: | ||
filter: '[A-z0-9_\-]*' | ||
path: .+ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"bundles": { | ||
"Liip\\ImagineBundle\\LiipImagineBundle": ["all"] | ||
}, | ||
"copy-from-recipe": { | ||
"etc/": "%ETC_DIR%/" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<bg=blue;fg=white> </> | ||
<bg=blue;fg=white> What's next for Imagine Bundle? </> | ||
<bg=blue;fg=white> </> | ||
|
||
* <fg=blue>Configure</> your transformations: | ||
- Verify and uncomment the config options in <comment>imagine.yaml</> | ||
- You MUST specify the image manipulation library, one of <comment>gd</>, <comment>gmagick</>, or <comment>imagick</> | ||
- You MAY specify additional transformation definitions under the <comment>filter_sets</> option | ||
|
||
* <fg=blue>Use</> your transformations: | ||
- Twig: <comment>{{ imagine_filter('my_thumbnails') }}</> | ||
- PHP: <comment>$this->get('liip_imagine.cache.manager')->getBrowserPath('/relative/path/to/image.jpg', 'my_thumbnails');</> | ||
|
||
* <fg=blue>Read</> the documentation at <comment>https://symfony.com/doc/current/bundles/LiipImagineBundle</> |