[Tutor] image sizes

Ignacio Vazquez-Abrams ignacio@openservices.net
Mon, 20 Aug 2001 23:39:19 -0400 (EDT)

On Mon, 20 Aug 2001 fleet@teachout.org wrote:

> I'm really pushing the topic limits here; but I want to be able to obtain
> image sizes (height and width of .GIF files) from within a Python script.
> I know about PIL; but is this necessary to accomplish what I want?  And
> will it accomplish what I want?
> (I haven't a clue how to go about this outside of Python either!)
> And if it's needed - RH 7.1 and Python 1.5.2.
> 				- fleet -

You could use PIL. Or you could use PythonMagick
(http://starship.python.net/crew/zack/pymagick/). Or you could handle it all
yourself (http://www.dcs.ed.ac.uk/home/mxr/gfx/2d-hi.html). I suggest using
PIL or PythonMagick. If you have a large variety of formats to handle then
PythonMagick might be a better choice.

Ignacio Vazquez-Abrams  <ignacio@openservices.net>