pocketsvg/PocketSVG

Some files don't support

alexanderkhitev opened this issue · 7 comments

I did exported new svg files from Sketch Version 57.1 (83088), but they do not work, I tried using them in other frameworks or Google Chrome, and they work well there. How to fix this problem? I made a demo project in which I added our file and pasted it into the GrayscaleTigerViewController, also in the archive you will find this file separately.

image

Archive.zip

I checked here https://validator.w3.org/check and got following result

This document was successfully checked as SVG 1.1 + URL + HTML + MathML 3.0!

Hi @alexanderkhitev

Thanks for reporting this, either I or @fjolnir will take a look soon.

@arielelkin thank you so much!

Yeah, Sketch is using <defs followed by <use directives, as well as <mask; none of which are supported. I hope there's a way to get it to output more simply. What does your .sketch file look like?

Hi @fjolnir ! thanks for quick response! I cannot send the original file from designer, but I can send file which contains only this mask.

Archive.zip

Hey @fjolnir ! I installed svgo-compressor, then used svg-optimize and it works fine with PocketSVG

Great!