well-typed / ghc-events-analyze

BSD 3-Clause "New" or "Revised" License
67 stars 23 forks source link

migrate to diagrams-raster from diagrams-svg #5

Closed cartazio closed 9 years ago

cartazio commented 10 years ago

even aside from the rendering issue i'm having with svg, having a 10mb-100mb svg is a bit nasty!

cartazio commented 10 years ago

i may have a go at this task if you'd be open to it

edsko commented 10 years ago

What is diagrams-raster?

cartazio commented 10 years ago

i mean https://github.com/diagrams/diagrams-rasterific its a diagrams backend that uses rasterific, and thence juicy-pixels to emit a png/jpeg/gif etc.

i may just try doing the migration speculatively, the motivation being that for high complexity visuals, a raster image tends to have MUCH better space complexity than a vector format

edsko commented 10 years ago

Only reason I was just using SVG is that the gtk libraries are often a pain to install on OSX so I wanted to avoid that. What's the situation with rasterific on that?

edsko commented 10 years ago

Could we make it conditional? This is an executable after all, should be okay?

cartazio commented 10 years ago

rasterific has no system deps, pure haskell al the way. from vector raster rendering to generating the final file https://hackage.haskell.org/package/Rasterific

sure, making it conditional would be ok by me,

edsko commented 10 years ago

If it's pure haskell, go for it :)

edsko commented 9 years ago

Closing this as it's not strictly speaking an issue. If you ever get round to implementing this, feel free to open a pull request :)

cartazio commented 9 years ago

sounds good