stathissideris / dali

dali is a Clojure library for representing, exporting and manipulating the SVG graphics format.
291 stars 16 forks source link

PNG as Buffer instead of writing to disk #3

Closed alexandrepage closed 8 years ago

alexandrepage commented 8 years ago

Hi, I'm trying to generate a png without having to write it to disk. For example (def buffer-image (io/render-to-png document)) So then I can do what I want with the image without having to write to disk first. Hope I'm clear, and by the way awesome librairy

stathissideris commented 8 years ago

I've looked around a bit, and it seems that Batik (which dali uses internally for rasterization) has no super-easy way to support this, but there are a couple of hacks that can be employed to make this happen. I'll include it in the next version, watch this space! Glad you like the library :+1: