[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Writing an image format
- From: David Manura <dm.lua@...>
- Date: Wed, 27 Oct 2010 20:05:01 -0400
On Tue, Oct 26, 2010 at 6:26 PM, Luiz Henrique de Figueiredo
>On Tue, Oct 26, 2010 at 6:05 PM, Mike McGonagle <firstname.lastname@example.org> wrote:
>> I am looking for a simple way to generate and write a color image to
>> disk. I know that there is the GD library, the Cairo library, and
>> several other things that require the installation of various C level
>> libraries in order to use them. I don't want to have to install a
>> bunch of libraries that deal with reading and writing images,...
> The simplest format is the Netpbm family of formats:
FWIW, the start of a pure Lua PNG reader is in , if anyone wants to
finish it. This is not simple like PBM though, and a writer would be
even more work. The more normal thing to do would be to link to
libpng or os.execute netpbm.