-
-
Notifications
You must be signed in to change notification settings - Fork 633
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 fea58c9
Showing
4 changed files
with
64 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 | ||
# # https://symfony.com/doc/current/bundles/LiipImagineBundle/basic-usage.html#create-thumbnails | ||
# squared_thumbnail: | ||
# | ||
# # 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 dimensions | ||
# 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,2 @@ | ||
_liip_imagine: | ||
resource: "@LiipImagineBundle/Resources/config/routing.yaml" |
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,9 @@ | ||
{ | ||
"bundles": { | ||
"Liip\\ImagineBundle\\LiipImagineBundle": ["all"] | ||
}, | ||
"copy-from-recipe": { | ||
"etc/": "%ETC_DIR%/" | ||
}, | ||
"version_aliases": ["2.0"] | ||
} |
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,17 @@ | ||
|
||
<bg=blue;fg=white> </> | ||
<bg=blue;fg=white> Getting started using </><bg=blue;fg=white;options=bold>liip/imagine-bundle</><bg=blue;fg=white> </> | ||
<bg=blue;fg=white> </> | ||
|
||
* <fg=blue;options=bold>Configure</> <fg=blue>your transformations:</> | ||
1. You <options=bold>MUST</> verify and uncomment the configuration in <comment>%ETC_DIR%/packages/imagine.yaml</>. | ||
2. You <options=bold>MAY</> configure your image transformation library (<comment>gmagick</>, <comment>imagick</>, or <comment>gd</> [default]). | ||
3. You <options=bold>MAY</> define custom transformation definitions under the <comment>filter_sets</> option. | ||
|
||
* <fg=blue;options=bold>Use</> <fg=blue>your transformations:</> | ||
- Using Twig: <comment>{{ imagine_filter('squared_thumbnail') }}</> | ||
- Using PHP : <comment>$this->get('liip_imagine.cache.manager')->getBrowserPath('/path/to/image.jpg', 'squared_thumbnail')</> | ||
|
||
* <fg=blue;options=bold>Read</> <fg=blue>the documentation and</> <fg=blue;options=bold>ask</> <fg=blue>for help:</> | ||
- Documentation: <comment>https://symfony.com/doc/current/bundles/LiipImagineBundle</> | ||
- Issue Tracker: <comment>https://github.com/liip/LiipImagineBundle/issues</> |