Skip to content

Commit

Permalink
add liip/imagine-bundle recipe
Browse files Browse the repository at this point in the history
  • Loading branch information
robfrawley committed May 12, 2017
1 parent b165dcd commit fea58c9
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 0 deletions.
36 changes: 36 additions & 0 deletions liip/imagine-bundle/1.8/etc/packages/imagine.yaml
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'
2 changes: 2 additions & 0 deletions liip/imagine-bundle/1.8/etc/routing/imagine.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
_liip_imagine:
resource: "@LiipImagineBundle/Resources/config/routing.yaml"
9 changes: 9 additions & 0 deletions liip/imagine-bundle/1.8/manifest.json
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"]
}
17 changes: 17 additions & 0 deletions liip/imagine-bundle/1.8/post-install.txt
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</>

0 comments on commit fea58c9

Please sign in to comment.