-
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
Implement Imagine Grayscale filter #638
Conversation
/** | ||
* {@inheritdoc} | ||
*/ | ||
public function load(ImageInterface $image, array $options = []) |
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.
PR looks good, though you use []
which is not supported on php5.3, but we still supports this version, could you changes this to be BC?
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.
Tests failed on travis.
The fix is done but Travis is still failing. I think it fail for another reason. |
can you also add something to the docs? |
please rebase on master to get the test fixed |
@gregumo Could you please do a rebase? |
…ter results purpose
@lsmith77 The doc for Grayscale Filter has been added @makasim I just made the rebase but Imagine Grayscale Filter results are not the same between imagine/imagine 0.6.1 and 0.6.3. And the class Imagine\Image\Palette\RGB that I used doesn't exist before 0.6.1. So I propose to upgrade imagine dependency to 0.6.3 minimum. I made the change in the composer.json file but I let you add a new release tag for Liip if you think it's necessary. Sorry for my late reply :/ |
The bundle support imagine 0.5 now. Should we drop it? Is it widely used? |
If you ask me if Grayscale filter is widely used, I really don't know but I think this is a really interesting filter to add to LiipImagineBundle. For Imagine 0.5.0, my test can't work because the class 'Imagine\Image\Palette\RGB' that I load has been created in Imagine 0.6.0. So the continuous integration test with the composer tag --prefer-lowest failed if I don't change imagine dependency tags in composer.json. Then I have a color issue between 0.6.1 and 0.6.3:
This is why I propose to upgrade Imagine dependency to ^0.6.3 So I think we should drop Imagine 0.5 for 0.6.3 and upper. |
I think so, just for semantic versioning: This is a BC and would increase the major version :) |
Hello, |
Hi ! Do you plan to merge this PR ? |
I think we can bump the imagine dependency to 0.6.3 without a major new version |
No description provided.