SwiftSVG icon indicating copy to clipboard operation
SwiftSVG copied to clipboard

fragmented image

Open jwolkovitzs opened this issue 7 years ago • 1 comments

when using this svg it comes out in pieces fragmented on the screen attached is the svg file and the resulting image where the hair and lapel are sent in random directions

screen shot 2017-10-03 at 10 26 58 pm screen shot 2017-10-03 at 10 20 57 pm

original svg screenShot.svg.zip

jwolkovitzs avatar Oct 04 '17 02:10 jwolkovitzs

Hey @jwolkovitzs - I had the same problem. It happens with the way Sketch exports rotations in it's SVGs. If you open your SVG file you'll see some of your groups and paths have rotation transforms applied. The easiest way to get rid of this until the library can address it directly is to reset the bounding box by selecting the rotated graphic and go "Layer > Combine > Flatten" in Sketch before exporting.

The tips in https://medium.com/sketch-app-sources/exploring-ways-to-export-clean-svg-icons-with-sketch-the-correct-way-752e73ec4694 were helpful to me to resolve other Sketch-SVG related issues.

cayleyh avatar Oct 18 '17 23:10 cayleyh