HaikuTeam / core

:rice: Interactive UI animation engine for the Web. Core renderer for Haiku Animator.
https://www.haikuforteams.com
Other
763 stars 42 forks source link

We couldn't load the contents of .. #2

Closed goldo closed 6 years ago

goldo commented 6 years ago

Hi, I'm trying to add sketch file or svg file without success on the mac app. I'm having a: "We couldn't load the contents of designs/icon.svg"

file is here: icon_huit.svg.zip

Thanks you

nadonomy commented 6 years ago

Hey @goldo,

Thanks for letting us know. Illustrator has some quirks in the way it exports SVG, but fortunately the settings for those are exposed. You should be able to import Illustrator assets to Haiku if you check the following options when exporting SVG (we tested here on Adobe CC 2017.1.0):

  1. File > Export > Export As...
  2. Choose Format: SVG (svg)
  3. Optionally, select "Use Artboards"
  4. In the next dialog box, choose "Styling > Presentation Attributes" and "Object ID's > Unique", then ensure that Minify and Responsive are NOT checked

And the SVG's should be good to import using Haiku for Mac.

I'm closing this issue as we have a fix planned for Haiku for Mac's codebase that will improve asset support. However, if you run into any more asset issues, feel free to find us on Slack or email me— first 3 characters of my username [at] haiku [dot] ai.

I've also made a note to improve our documentation on this issue.

Cheers, Nad