-
Notifications
You must be signed in to change notification settings - Fork 379
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
added background_image filter #319
Conversation
* | ||
* @author Robert Schönthal <robert.schoenthal@sinnerschrader.com> | ||
*/ | ||
class BackgroundImageFilterLoader implements LoaderInterface |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the difference from BackgroundFilterLoader which we already have?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe it would be better to impr exist one.
ok merged it with the default background filter |
$size = $image->getSize(); | ||
|
||
if (isset($options['size'])) { | ||
list($w, $h) = $options['size']; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would personally prefer long var names.
looks good to me, is it possible to add a test? |
ok fixed the cosmetics, i dont have written a test because there arent any FilterTests at all ;) |
@@ -141,6 +141,7 @@ | |||
<tag name="liip_imagine.filter.loader" loader="crop" /> | |||
</service> | |||
|
|||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line isn't required.
Minor tweaks and squash, then it's good to go :-) |
done |
tweaked the background filter:
The
background
filterThe background filter can now create a background-image with dimensions and color, default is white (#FFF). where you can put other images/filters ontop
Configuration looks like this: