gif creator

C

ccdetail

has anyone written a gif creator program purely in python that doesn't
require PIL or tons of other claptrap?

the GIF89a format is pretty straightforward and C is not required to
create these files.

i didn't want to have to upgrade to a newer release of python, install
a huge bunch of stuff or compile
anything. and i don't care about other formats or animation or
whatever. black and white is ok.

i just want to be able to create a gif that's 100x40 (or whatever) and
pass in an array saying
which pixels are black or white.

sounds pretty simple doesn' t it?
 
S

Steve Holden

has anyone written a gif creator program purely in python that doesn't
require PIL or tons of other claptrap?

the GIF89a format is pretty straightforward and C is not required to
create these files.

i didn't want to have to upgrade to a newer release of python, install
a huge bunch of stuff or compile
anything. and i don't care about other formats or animation or
whatever. black and white is ok.

i just want to be able to create a gif that's 100x40 (or whatever) and
pass in an array saying
which pixels are black or white.

sounds pretty simple doesn' t it?

It doesn't sound anywhere near as simple as downloading and installing
PIL then using that. Claptrap is in the eye of the beholder. There are
many pitfalls awaiting the programmer who decides to write something to
do such a "simple" task ...

regards
Steve
 
M

Miki

i didn't want to have to upgrade to a newer release of python, install
a huge bunch of stuff or compile
anything.  and i don't care about other formats or animation or
whatever.  black and white is ok.
One option is to install ImageMagick and use subprocess.Popen to
communicate with it. This will work even when you upgrade Python.

HTH,
 
L

Lawrence D'Oliveiro

In message
has anyone written a gif creator program purely in python that doesn't
require PIL or tons of other claptrap?

It's so much easier to just go into Synaptic (or whatever your package
manager is) and check a few boxes to install all the necessary "claptrap",
than it is to try to reinvent large chunks of it yourself.
 
P

Peter Pearson

has anyone written a gif creator program purely in python that doesn't
require PIL or tons of other claptrap?

If you would be interested in an old and simpleminded Python
program for manipulating PNM files, contact me by email.
The comments include these lines:

# Usage:
# import pnm
# f = pnm.InputFile( "blooey.ppm" )
# print f.width, f.height, f.maxval
# for x in range( f.width ):
# for y in range( f.height ):
# doSomethingWith( f.readPixel )
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,780
Messages
2,569,611
Members
45,269
Latest member
vinaykumar_nevatia23

Latest Threads

Top