[cl-gd-devel] images from binary data

Hans Hübner hans at huebner.org
Mon Apr 28 13:15:05 UTC 2008


On Mon, Apr 28, 2008 at 2:08 PM, Ryszard Szopa <ryszard.szopa at gmail.com> wrote:
>  CL-GD makes it very easy to output images as bytes to streams.
>  However, I haven't noticed any solutions for doing the opposite, that
>  is to create a picture from binary data (all the macros want either
>  strings or pathnames). How would I do it? Is it going to be very
>  difficult? What are the caveats?

It would not be difficult, but only a little tedious as you would need
to add new stub functions to cl-gd-glue.c that call the right
gdImageCreateFrom*Ptr function (available in GD2) for the file format
in question.  Also, memory handling would be an issue, but you're
certainly aware of that.

I'm not sure how many cl-gd users there are, but I'm certainly one of
them.  So please, if you add this, do it in an additive fashion :)

-Hans



More information about the Cl-gd-devel mailing list