Skip to content
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

Parsing SVG Shadow filters #6855

Closed
andreafalzetti opened this issue Feb 7, 2021 · 2 comments
Closed

Parsing SVG Shadow filters #6855

andreafalzetti opened this issue Feb 7, 2021 · 2 comments
Labels
stale Issue marked as stale by the stale bot

Comments

@andreafalzetti
Copy link

I am trying to load an SVG containing shadows which uses the feGaussianBlur filter. I found from the FabricJS PR 2349 that Fabric is able to create SVG with shadows, however when you load the same SVG ouput into the canvas again, the shadow is not rendered.

I was wondering if this is a bug, missing funcionality, or it's not doable?

Thanks!

Version

4.3.1

Test Case

https://jsfiddle.net/andreafalzetti/s6rvdxzw/8/

Information about environment

Browser
Tested on Firefox and Chrome

Steps to reproduce

Load an SVG which contains shadow effects such as feGaussianBlur

Expected Behavior

The

Actual Behavior

@asturur
Copy link
Member

asturur commented Feb 7, 2021

We do not have a filter parser for svgs.
And if we had, it won't be translated in a simple shadow.

On the other hand we have an open PR for appling filters on objects and that could allow simple svg filters to be imported in fabricJS.

SVG filters are much elaborated and allow for defining a pixel pipeline that we do not intend to support, and also please take in account that SVG is not meant to be used as a format for import and export

@stale
Copy link

stale bot commented Feb 21, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale Issue marked as stale by the stale bot label Feb 21, 2021
@stale stale bot closed this as completed Feb 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale Issue marked as stale by the stale bot
Projects
None yet
Development

No branches or pull requests

2 participants