[Zope] How can I test for type of image
Martin Sk?tt
martin@xenux.dk
Fri, 29 Jun 2001 16:13:09 +0200
OK. My best guess is that Zope uses mime types to do this, but that is a
wild guess.
On Fri, Jun 29, 2001 at 04:04:54PM +0200, Robert Rottermann wrote:
> Martin,
> Thank you for your answer.
> Unfortunately I did not tell what I want correctly.
> I actually would like to add an other filetype to be recognized by CMF. I
> assumed that when I am told how to read the the Imgtype would give me a clue
> where to finde the code within CMF.
> However imgheader is not used in Zope.
> So if you have an other Typ maybe?
>
> thanks anyhow
> Robert
> ----- Original Message -----
> From: "Martin Sk?tt" <martin@xenux.dk>
> To: "Robert Rottermann" <robert@redcor.ch>; <zope@zope.org>
> Sent: Friday, June 29, 2001 3:17 PM
> Subject: Re: [Zope] How can I test for type of image
>
>
> > 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
> >
> > _______________________________________________
> > Zope maillist - Zope@zope.org
> > http://lists.zope.org/mailman/listinfo/zope
> > ** No cross posts or HTML encoding! **
> > (Related lists -
> > http://lists.zope.org/mailman/listinfo/zope-announce
> > http://lists.zope.org/mailman/listinfo/zope-dev )
> >
>
>
--
Martin Skøtt
martin@xenux.dk
Xenux Aps - The Linux People