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

Support Inkscape Filters #249

Open
lainz opened this issue Mar 30, 2024 · 7 comments
Open

Support Inkscape Filters #249

lainz opened this issue Mar 30, 2024 · 7 comments

Comments

@lainz
Copy link
Member

lainz commented Mar 30, 2024

Hi, for example on this svg file there is a inner shadow filter.

windspro dragon
windspro dragon

@lainz
Copy link
Member Author

lainz commented Mar 30, 2024

Also I give you a challenge, try to draw that image with LazPaint =)

The font is NextGames.

@circular17
Copy link
Contributor

Hi Leandro,

What a beautiful picture! I am not sure I will try the challenge, even if I have some ideas on how to do it.

Going back to your request, thanks for suggesting ideas to explore. I need a bit of clarity about your wish. How would you see this filters made available? Are those bitmap filters? Or within SVG?

The inner shadow effect is available in LazPaint. Are there other Inkscape filters you're thinking about?

Regards

@lainz
Copy link
Member Author

lainz commented Mar 30, 2024

Hi, ok no problem. Is a bit hard to draw. But I think with LazPaint is possible.

The thing about Inkscape filters is these are SVG filters. Also available in browsers that display SVG files created with Inkscape. I think browsers use Inkscape code to display SVG... or these filters are as well part of the standard? I don't know...

@lainz
Copy link
Member Author

lainz commented Mar 30, 2024

The thing is if you try to load that SVG file with LazPaint is all white, it doesn't have the inner shadow in the SVG.

@circular17
Copy link
Contributor

I recall that one SVG file you made for BGRABitmap with a shadow effect contained actually a bitmap of the shadow, generated by Inkscape.

@circular17
Copy link
Contributor

Oh but looking at the code of the SVG file of the WinDS dragon, there are indeed SVG filters:

<filter
       style="color-interpolation-filters:sRGB"
       inkscape:label="Drop Shadow"
       id="filter5240"
       x="-0.086992001"
       y="-0.080155753"
       width="1.173984"
       height="1.1603115"><feFlood
         flood-opacity="0.498039"
         flood-color="rgb(0,0,0)"
         result="flood"
         id="feFlood5230" /><feComposite
         in="flood"
         in2="SourceGraphic"
         operator="out"
         result="composite1"
         id="feComposite5232" /><feGaussianBlur
         in="composite1"
         stdDeviation="1.5"
         result="blur"
         id="feGaussianBlur5234" /><feOffset
         dx="0"
         dy="0"
         result="offset"
         id="feOffset5236" /><feComposite
         in="offset"
         in2="SourceGraphic"
         operator="atop"
         result="composite2"
         id="feComposite5238" /></filter>

@lainz
Copy link
Member Author

lainz commented Mar 31, 2024

There are a lot of filters, that according to the SVG code are small settings, that produce an effect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants