[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Imagemagick and Guile
From: |
A0 |
Subject: |
Re: Imagemagick and Guile |
Date: |
Sun, 11 Jan 2015 12:53:49 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.3.0 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 11/01/15 12:11, Neil Jerram wrote:
> On 2015-01-11 09:09, A0 wrote:
>
>> I need to generate an image from raw byte data in my code and
>> ImageMagick seems like an obvious choice to do this. But,
>> looking at http://www.imagemagick.org/script/api.php , I see no
>> Guile API listed.
>>
>> Before I get my hands dirty, I'd like to check if someone
>> already built a functional API for Guile, or, at least, the chunk
>> of it containing the PixelIterator functionality.
>>
>> I am also interested in hearing about other Guile-enabled libs
>> that can do the same thing, namely, creating an image in some of
>> the popular formats.
>
> In addition to the other suggestions that people have made, note
> that you could also use the Guile FFI to access ImageMagick's C API
> from Guile.
>
> Personally, I find using the FFI much more fun than writing a
> 'proper' Guile binding.
>
> Regards, Neil
>
>
Sure, I'll use the FFI to wrap the procedures i need, provided no one
has bothered to
do that before. I just think, unless for educational purposes, or if
you can do it much better (but, hey, it's just an API),
it does not make much sense to repeat something someone has already
done before.
Best,
A0
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iQEcBAEBAgAGBQJUsnJdAAoJELoKbu7/AzdHRTsH/R5HoKN8gebPIqw9TpH3Yd5B
ttNo8YYwWsHDtwoGJTM4lw0UN8eAQl1p2MViBYNd7lqTrC8d9EF2PGuJ5PhjTnqN
97ngZMx/+n8nTBUuUR3l16URRJoRCssDg+oBAF968/+AA2u6qDY58jTJxEu7tj4c
a2/Nc0g8uji+DfgrcYyZcoTfhIVahMzYte44extDPIIe5LHWU5rtyYDiTU+g20JK
euvVxnay8u5rg1JAqouuG3uVR9Mg5mlNY3u5coRszZ2JuLLWOdi9wLOUAMNx0nRt
a+q2j3A4adEonBRgH69yAEeXw+sV2AN1XsL4Od24JAnUlkCDFUxdfncD+KWioak=
=0fkW
-----END PGP SIGNATURE-----