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 7, 2017
1 parent b165dcd commit 8bb6d4b
Show file tree
Hide file tree
Showing 3 changed files with 62 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
# # 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'
12 changes: 12 additions & 0 deletions liip/imagine-bundle/1.8/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"bundles": {
"Liip\\ImagineBundle\\LiipImagineBundle": ["all"]
},
"copy-from-recipe": {
"etc/": "%ETC_DIR%/"
},
"copy-from-package": {
"Resources/config/routing.yaml": "%ETC_DIR%/routing/imagine.yaml"
},
"version_aliases": ["2.0"]
}
14 changes: 14 additions & 0 deletions liip/imagine-bundle/1.8/post-install.txt
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</>

0 comments on commit 8bb6d4b

Please sign in to comment.