-
-
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
[2.0] Node - Image filters not working #4231
Comments
Just to say i did not let this behind. So i'm trying to remove all specific node code since jsdom should handle the job quite well. The problem is that sometimes the canvas that is drawing is a pure node-canvas canvas, sometimes is JSDOM wrapped canvas. and this thing makes it break. |
@asturur Just wanted to provide an update on this one: I tried it with the latest release (2.0.0-beta.7) but experienced the same result. |
It's killing me, anything new in this topic?? |
is hard for me too. in our case jsdom is not transparent with our filtering operation. i ll try again and open an help request on jsdom and link it here. |
@asturur thank you for the reply, can you say more what dirty hack have you used here #4257 to make it working ? I'm considering to fork JSDOM and place some temporary hack to fix this issue, but newest JSDOM is not supported by fabricjs... right now I feel like a blind child in the Bieszczady trying to fix that |
i did not manage to fix filters. jsdom 9.x is way batter than the old 3.x so jsdom is detecting node canvas support and is providing fabricjs with fake canvas elements that should just work. and they work for everything except filters. now i m out, i ll redo that branch and share it to give it a try. |
Any news here? or it's just to hard topic and we should back to 1.x version with our code |
I'm sorry no news, i did not have time to handle this. |
finally starting to investigate this. |
@asturur when use the 2.0-rc.1, canvas.createJPEGStream is undefined.What's your way to initiate a new fabric.Canvas? |
i think you need to install libjpeg when you build node canvas |
alreay installed,use 2.0.0-beta.7 is ok. |
the error was called differently before because now is jsdom that is probably surfacing it. |
when updated 2.0.0-rc.3,i found canvas.createJPEGStream is a function,but no stream response |
Version
Fabric 2.0.0-beta.6
Node v6.9.5
Test Case
When filters are not applied, it works as expected. I attempted to create a cloud9 but I am not sure how to build fabric for their environment. If you have an existing workspace, I could try to use that.
The text was updated successfully, but these errors were encountered: