From e61fa8e6a6069927a4648e27d5c30a5556b2ae9a Mon Sep 17 00:00:00 2001 From: Rob Frawley 2nd Date: Sat, 6 May 2017 00:12:48 -0400 Subject: [PATCH] add liip/imagine-bundle recipe --- .../1.7/etc/packages/imagine.yaml | 36 +++++++++++++++++++ .../1.7/etc/routing/imagine.yaml | 19 ++++++++++ liip/imagine-bundle/1.7/manifest.json | 8 +++++ liip/imagine-bundle/1.7/post-install.txt | 14 ++++++++ 4 files changed, 77 insertions(+) create mode 100644 liip/imagine-bundle/1.7/etc/packages/imagine.yaml create mode 100644 liip/imagine-bundle/1.7/etc/routing/imagine.yaml create mode 100644 liip/imagine-bundle/1.7/manifest.json create mode 100644 liip/imagine-bundle/1.7/post-install.txt diff --git a/liip/imagine-bundle/1.7/etc/packages/imagine.yaml b/liip/imagine-bundle/1.7/etc/packages/imagine.yaml new file mode 100644 index 0000000000..b104830130 --- /dev/null +++ b/liip/imagine-bundle/1.7/etc/packages/imagine.yaml @@ -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' diff --git a/liip/imagine-bundle/1.7/etc/routing/imagine.yaml b/liip/imagine-bundle/1.7/etc/routing/imagine.yaml new file mode 100644 index 0000000000..dbc72fb26e --- /dev/null +++ b/liip/imagine-bundle/1.7/etc/routing/imagine.yaml @@ -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: .+ diff --git a/liip/imagine-bundle/1.7/manifest.json b/liip/imagine-bundle/1.7/manifest.json new file mode 100644 index 0000000000..42b3af6877 --- /dev/null +++ b/liip/imagine-bundle/1.7/manifest.json @@ -0,0 +1,8 @@ +{ + "bundles": { + "Liip\\ImagineBundle\\LiipImagineBundle": ["all"] + }, + "copy-from-recipe": { + "etc/": "%ETC_DIR%/" + } +} diff --git a/liip/imagine-bundle/1.7/post-install.txt b/liip/imagine-bundle/1.7/post-install.txt new file mode 100644 index 0000000000..ebcd13530e --- /dev/null +++ b/liip/imagine-bundle/1.7/post-install.txt @@ -0,0 +1,14 @@ + + What's next for Imagine Bundle? + + + * Configure your transformations: + - Verify and uncomment the config options in imagine.yaml + - You MUST specify the image manipulation library, one of gd, gmagick, or imagick + - You MAY specify additional transformation definitions under the filter_sets option + + * Use your transformations: + - Twig: {{ imagine_filter('my_thumbnails') }} + - PHP: $this->get('liip_imagine.cache.manager')->getBrowserPath('/relative/path/to/image.jpg', 'my_thumbnails'); + + * Read the documentation at https://symfony.com/doc/current/bundles/LiipImagineBundle \ No newline at end of file