-
-
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
Weird interaction between image and resize filters #5332
Comments
Thanks for the bug report. i ll look at it. |
Thanks @asturur. Just a note that the cropping issue doesn't seem to be present on HiDPI displays so I expect it's related to retina scaling. The image filter issue is present on all devices I've tested. |
https://jsfiddle.net/hwrs1bzd/43/ While the Load from JSON looks like a bug, the filter interaction was fixed recently. Can you check if you can make the filter disappear on the fiddle based on 2.4.1? |
Thanks @asturur, you're right the disappearing filter issue is fixed in later releases (I used an older fiddle as a starting point so I must have missed updating to the latest release). The fiddle was only intended to isolate the load from JSON issue which I came across in my project running 2.4.1. |
Load from JSON is now solved too. |
Yeah, I saw the PR, thanks for the quick fix. I've been putting off using resizefilters in my project so I'm hoping this week I'll be able to make use of this excellent feature (some images definitely suffer without it) |
i have seen in your code you select |
Great tip! It'd be great to improve some of the documentation on resizefilters at some point. I'd write a wiki but I fear my understanding is still too limited |
Version
2.4.1
Test Case
https://jsfiddle.net/melchiar/hwrs1bzd/
Information about environment
Browser
tested on Chrome & Firefox
Steps to reproduce
Expected Behavior
The image should resize as expected while keeping the image filter. The stringified canvas should also load exactly as it appeared before being serialized.
Actual Behavior
Shrinking the image beyond a certain point causes the image filter to disappear. When the canvas is serialized and then loaded while in this state, the loaded canvas makes the image filter work again, but the image becomes cropped. If you resize the image again, the cropping disappears, but so does the image filter.
The text was updated successfully, but these errors were encountered: