Terry Reedy napisał(a):
> Other than installing PIL, is there a "simple" way using Python only
> to determine if a file is a valid image file?
> [...]
>> Be aware that broken images (i.e. partially downloaded) in many cases
>> pass the imghdr.what() test.
>
> To put it another way, the on
"Jarek Zgoda" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
André napisa³(a):
Other than installing PIL, is there a "simple" way using Python only
to determine if a file is a valid image file?
[...]
> Be aware that broken images (i.e. partially downloaded) in many cases
>
On Aug 2, 4:25 pm, Jarek Zgoda <[EMAIL PROTECTED]> wrote:
> André napisa³(a):
>
> Other than installing PIL, is there a "simple" way using Python only
> to determine if a file is a valid image file?
> I'd be happy if I could at least identify valid images files for gif,
> jpeg a
André napisał(a):
Other than installing PIL, is there a "simple" way using Python only
to determine if a file is a valid image file?
I'd be happy if I could at least identify valid images files for gif,
jpeg and png. Pointers to existing modules or examples would be
appr
André wrote:
> I should have added: I'm interesting in validating the file *content*
> - not the filename :-)
Some formats have identifying headers... I think jpeg is an example of
this. Open it with a hex editor or just read the first few bytes and see
for yourself.
Brad
--
http://mail.pytho
André wrote:
> Other than installing PIL, is there a "simple" way using Python only
> to determine if a file is a valid image file?
>
> I'd be happy if I could at least identify valid images files for gif,
> jpeg and png. Pointers to existing modules or examples would be
> appreciated.
>
> The
On Aug 2, 11:38 am, [EMAIL PROTECTED] wrote:
> On Aug 2, 9:35 am, Thomas Jollans <[EMAIL PROTECTED]> wrote:
>
>
>
> > On Thursday 02 August 2007, André wrote:
>
> > > On Aug 2, 11:14 am, André <[EMAIL PROTECTED]> wrote:
> > > > Other than installing PIL, is there a "simple" way using Python only
>
On Aug 2, 11:34 am, Jarek Zgoda <[EMAIL PROTECTED]> wrote:
> André napisa³(a):
>
> >> Other than installing PIL, is there a "simple" way using Python only
> >> to determine if a file is a valid image file?
>
> >> I'd be happy if I could at least identify valid images files for gif,
> >> jpeg and pn
On Aug 2, 9:35 am, Thomas Jollans <[EMAIL PROTECTED]> wrote:
> On Thursday 02 August 2007, André wrote:
>
> > On Aug 2, 11:14 am, André <[EMAIL PROTECTED]> wrote:
> > > Other than installing PIL, is there a "simple" way using Python only
> > > to determine if a file is a valid image file?
>
> > > I
André napisał(a):
>> Other than installing PIL, is there a "simple" way using Python only
>> to determine if a file is a valid image file?
>>
>> I'd be happy if I could at least identify valid images files for gif,
>> jpeg and png. Pointers to existing modules or examples would be
>> appreciated
André wrote:
> On Aug 2, 11:14 am, André <[EMAIL PROTECTED]> wrote:
>> Other than installing PIL, is there a "simple" way using Python only
>> to determine if a file is a valid image file?
>>
>> I'd be happy if I could at least identify valid images files for gif,
>> jpeg and png. Pointers to exi
On Thursday 02 August 2007, André wrote:
> On Aug 2, 11:14 am, André <[EMAIL PROTECTED]> wrote:
> > Other than installing PIL, is there a "simple" way using Python only
> > to determine if a file is a valid image file?
> >
> > I'd be happy if I could at least identify valid images files for gif,
>
On Aug 2, 11:14 am, André <[EMAIL PROTECTED]> wrote:
> Other than installing PIL, is there a "simple" way using Python only
> to determine if a file is a valid image file?
>
> I'd be happy if I could at least identify valid images files for gif,
> jpeg and png. Pointers to existing modules or exa
13 matches
Mail list logo