From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: A0 Newsgroups: gmane.lisp.guile.user Subject: Re: Imagemagick and Guile Date: Sun, 11 Jan 2015 12:53:49 +0000 Message-ID: <54B2725D.1040606@openmailbox.org> References: <54B23DB0.8080406@openmailbox.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1420980909 1328 80.91.229.3 (11 Jan 2015 12:55:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 11 Jan 2015 12:55:09 +0000 (UTC) Cc: guile-user@gnu.org To: Neil Jerram Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sun Jan 11 13:55:02 2015 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YAI2o-0001XY-8E for guile-user@m.gmane.org; Sun, 11 Jan 2015 13:55:02 +0100 Original-Received: from localhost ([::1]:58127 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YAI2n-0002aN-D5 for guile-user@m.gmane.org; Sun, 11 Jan 2015 07:55:01 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38800) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YAI2e-0002aH-Hb for guile-user@gnu.org; Sun, 11 Jan 2015 07:54:53 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YAI2b-0002Vj-Bh for guile-user@gnu.org; Sun, 11 Jan 2015 07:54:52 -0500 Original-Received: from mail2.openmailbox.org ([62.4.1.33]:50586) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YAI2b-0002VK-2E for guile-user@gnu.org; Sun, 11 Jan 2015 07:54:49 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by mail2.openmailbox.org (Postfix) with ESMTP id E0CA320079F; Sun, 11 Jan 2015 13:54:39 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=openmailbox.org; h=content-transfer-encoding:content-type:content-type :in-reply-to:references:subject:subject:mime-version:user-agent :from:from:date:date:message-id:received; s=openmailbox; t= 1420980877; bh=dLUB4L4XJ0lx3z1h3TIayfB9z586LlWYxXVzo7saO7s=; b=k UZtwe+8QY/8fyV6H8+/OVaixg2roJfDOMe5v5PLz0uGUA6c1WmFwmC3OzxhzUdPx vMs8Fa6rQBxEiBXwfL9B1Fhvdq0gnbpSQx2zvhrfA66pPZe8HUyn9oNQkzWaAnxe tCDJr+dZBiH0ohpKcvW+9pHCM9u0A3aWVfBZfYyH2Q= X-Virus-Scanned: amavisd-new at openmailbox.org Original-Received: from mail2.openmailbox.org ([62.4.1.33]) by localhost (mail.openmailbox.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id ktg2jMVUKKZa; Sun, 11 Jan 2015 13:54:37 +0100 (CET) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.3.0 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 62.4.1.33 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:11740 Archived-At: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 11/01/15 12:11, Neil Jerram wrote: > On 2015-01-11 09:09, A0 wrote: >=20 >> I need to generate an image from raw byte data in my code and=20 >> 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. >>=20 >> 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. >>=20 >> I am also interested in hearing about other Guile-enabled libs=20 >> that can do the same thing, namely, creating an image in some of >> the popular formats. >=20 > 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. >=20 > Personally, I find using the FFI much more fun than writing a > 'proper' Guile binding. >=20 > Regards, Neil >=20 >=20 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=3D =3D0fkW -----END PGP SIGNATURE-----