🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #15232

detect picture format

#15232
From: Vincent Nuijten
Date: Fri, 25 Jun 1999 00:00
18 lines
1005 bytes
hi,

how can i detect the format of an image file, if it can't be derived from
the extension?

for example:
how can i detect the format of a file named: picture.001 ?

the picture formats i want to detect are:
tiff, gif, bmp, pcx, tga, jpg (and more if possible)

and maybe this is possible for other binary data files (like avi's, wav's?)

many thanks in advance,

greetz,

vincent
Technical Details
Message-ID: <7kvtid$emp$1@zonnetje.NL.net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,d72127f41f851fd2,start
X-Google-Attributes: gidf74b3,public
From: "Vincent Nuijten" <info@c-content.nl>
Subject: detect picture format
Date: 1999/06/25
Message-ID: <7kvtid$emp$1@zonnetje.NL.net>
X-Deja-AN: 493750348
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4
X-Complaints-To: abuse@nl.uu.net
X-Trace: zonnetje.NL.net 930314637 15065 212.136.242.39 (25 Jun 1999 12:43:57 GMT)
Organization: UUNET-NL (http://www.nl.uu.net)
NNTP-Posting-Date: 25 Jun 1999 12:43:57 GMT
Newsgroups: borland.public.jbuilder.java.language