simonsimcity / liipimaginewatermark-bundle
Watermark filter for liip-imagine
Installs: 175
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 2
Forks: 4
Open Issues: 1
Type:symfony-bundle
Requires
- liip/imagine-bundle: dev-master
This package is not auto-updated.
Last update: 2024-10-26 15:29:08 UTC
README
Sorry for the short documentation, but this code was just meant to be of personal use and show an example on how to create your own custom imagine-filters in Symfony2.
Just install it as every SF2 package by adding it to your composer.js file and run the update-command or downloading the files and adding the package in your AppKernel class.
Configuration
Here's an example on how to use this custom filter:
liip_imagine:
filter_sets:
thumbnail:
quality: 75
filters:
thumbnail: { size: [120, 80], mode: outbound }
watermark:
file: %kernel.root_dir%/Resources/misc/watermark.png
placement: { position: center, resize: stretch, space: "10%" }