-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Filters is not working when image is inside an group. #4813
Comments
After you apply a filter, set the image as dirty, so the group knows that he has to rerender. |
dirty is simply |
Setting the group as dirty seems to do the job. Also another underlying issue here is that the filtering was not working because of CORS and tainting of the canvas on loading img from external domain. Using imageOpts for the fabric.Image.fromURL fixed the CORS issue. Working fiddle: http://jsfiddle.net/rok1yupd/23/ |
@scriptspry thank you |
img.set('dirty', true) is going to update the group to dirty automatically. |
Version
1.7.22
Test Case
http://jsfiddle.net/rok1yupd/10/
Steps to reproduce
When I apply filter to an image which is inside an group, that filter is not taking place directly, only when i save that image and loadFromJson the saved data.
Expected Behavior
Filters to apply directly.
Actual Behavior
Filters show up only when I do loadFromJson
The text was updated successfully, but these errors were encountered: