jdecool / image-workshop-bundle
Symfony2 bundle implementing for ImageWorkshop
Installs: 568
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Type:bundle
Requires
- php: >=5.3.0
- sybio/image-workshop: ^2.0
- symfony/symfony: ^2.3|^3.0
Requires (Dev)
- atoum/atoum: ~2.0
- atoum/stubs: ~2.0
This package is not auto-updated.
Last update: 2020-01-24 15:34:36 UTC
README
Symfony2 bundle implementing for ImageWorkshop
Install
Install the bundle using composer:
{ "require": { "jdecool/image-workshop-bundle": "~1.0" } }
Enable the extension in your application AppKernel
:
<?php public function registerBundles() { $bundles = [ // ... new JDecool\Bundle\ImageWorkshopBundle\ImageWorkshopBundle(), ]; // ... return $bundles; }
## Twig filters
<img src="{{ 'path/to/image/file.png'|image_filter('image_format') }}">
Configuration reference
image_workshop: cache: lifetime: 86400 # 1 day prefix: media/cache formats: ~
Image format definition
image_workshop: cache: lifetime: 86400 # 1 day prefix: media/cache formats: thumbnail: width: 200 height: 300 profile: width: 500 height: 500