Skip to content

SVG support using Cairo - #81

Closed
BookOwl wants to merge 5 commits into
masterfrom
cairosvg
Closed

BookOwl wants to merge 5 commits into
masterfrom
cairosvg

Conversation

@BookOwl

@BookOwl BookOwl commented Sep 12, 2016 •

Copy link
Copy Markdown
Member

This pr adds basic SVG support to slither. There are still some kinks that need to be worked out:

  • Resizing the rasterized SVGs makes them look awful, I need to add some sort of automatic re-rasterization.
  • I need to figure out how to get setup.py to automatically install Cairo.

@BookOwl BookOwl mentioned this pull request Sep 12, 2016
@BookOwl

BookOwl commented Sep 12, 2016 •

Copy link
Copy Markdown
Member Author

@Tymewalk, If you want to test this out, just checkout the cairosvg branch, reinstall slither (to get the new dependencies), install Cairo, and then run python3 slither/tests/svgTest.py

@BookOwl BookOwl added this to the v0.4.0 milestone Sep 12, 2016
@BookOwl BookOwl changed the title SVG support SVG support using Cairo Sep 12, 2016
@BookOwl

BookOwl commented Sep 12, 2016

Copy link
Copy Markdown
Member Author

I got automatic rerasterization to work! It's kind of slow, so you don't want to do it in a every frame, but it makes the SVG costumes look much nicer. Now on to figuring out how to get Cairo to automatically install...

@BookOwl BookOwl self-assigned this Sep 12, 2016
@BookOwl

BookOwl commented Sep 13, 2016

Copy link
Copy Markdown
Member Author

Well, it turns out that getting cairosvg's dependencies to install is really hard on Windows. I think that I'm going to try using Wand and ImageMagick instead.

@BookOwl

BookOwl commented Sep 13, 2016

Copy link
Copy Markdown
Member Author

I've gotten the wand-svg branch to a state where it can do everything this can, and it is far easier for users to install ImageMagick than Cairo and CairoSVG's dependencies, so I'm closing this in favor of that.

@BookOwl BookOwl closed this Sep 13, 2016
@BookOwl BookOwl removed this from the v0.4.0 milestone Sep 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant