[Zope] How can I test for type of image

Martin Sk?tt martin@xenux.dk
Fri, 29 Jun 2001 15:17:04 +0200


The refference for Python 1.5.2 mentions imghdr in section 14.9
which looks like it can do what you want. It can identify the most
common file formats, but also include hook for extension.
I have never tried using it, but remembered it when I saw you post.
On Fri, Jun 29, 2001 at 01:37:38PM +0200, Robert Rottermann wrote:
> Hi there,
> I would like to test of what type an image is. How can I do that?
> I think I saw some code once but can not find it anymor.
> 
> Thanks for your tips
> Robert

-- 
Martin Skøtt
martin@xenux.dk
Xenux Aps - The Linux People