How is your experience with the OutSystems Community?
6
Views
2
Comments
[SVG Utilities] masked svgs lose the mask on conversion to png
svg-utilities
Service icon
Forge asset by SVG Utilities Team
Application Type
Service

I'm generating a profile's svg by combining multiple facial features with modified colourisation through masked elements.  It appears when i run the svg through the png converter, the mask is discarded and i just get a large block of colour.  i'm attaching a generated image and the converted png. i'm also attaching one of the facial features with the masking which also just converts to a block of colour (tried this via your installable demo space).  

Do you have any thoughts on a possible fix (apart from modifying all the svgs to not use masks)?


aa3f6eb0-e30c-4c3e-9681-76dd330c296a.png
aunty-donna.svg
Beard Magestic.svg
2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

Hi Steve,

I checked the code, and it seems there's no processing in the Extension itself, it just calls the underlying SVG library. So it seems that it's a problem with that library, not the Extension. I've also tried upgrading to the latest version of the library (3.4.8), but again with the same (wrong) results. So it seems there's no way to use SVGs with masked elements with this Forge Asset.

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

Update: I checked the project's bug tracker, and the problem with masks was already reported in 2019, and apparently never fixed.

EDIT: I added your test file to the bug, it's clearer than the original one in the ticket.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.