diagrams / diagrams-haddock

Preprocessor for including inline diagrams in Haddock documentation
Other
10 stars 4 forks source link

Support PNG and GIF #31

Open idontgetoutmuch opened 7 years ago

idontgetoutmuch commented 7 years ago

I seem to have created an 11M SVG. It would be more economical to use a PNG. I'd also like to be able to embed animations (GIF).

byorgey commented 7 years ago

Yes, this makes sense. I don't remember off the top of my head why we only support the diagrams-svg backend, or how much work it would be to generalize.

byorgey commented 7 years ago

After a quick perusal of the code I think it is mostly a symptom of a more general problem: it is currently quite difficult to write code which can choose different backends based on user input such as a flag. I think this situation would probably improve with @cchalmers proposed changes to the way we organize backends and their types, although that may still be a ways off.

idontgetoutmuch commented 7 years ago

So a quick(ish) option would be to clone the repo and fix the backend to be rasterfic?

byorgey commented 7 years ago

Yes, I think that would probably work!

On 1:54am, Wed, Jul 19, 2017 idontgetoutmuch notifications@github.com wrote:

So a quick(ish) option would be to clone the repo and fix the backend to be rasterfic?

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/diagrams/diagrams-haddock/issues/31#issuecomment-316290387, or mute the thread https://github.com/notifications/unsubscribe-auth/AAglY1O69lOCe-LxLqPG_g03pf_FB73wks5sPag6gaJpZM4ObTTf .