/etc/magic entry for GIF files?

Pim Zandbergen pim at cti-software.nl
Thu Nov 1 10:30:21 AEST 1990


matthew at sunpix.east.sun.com (Matthew Stier - Sun Visualization Products) writes:

	0       string          GIF             GIF image 
	>3      string          87a             (version 87a) 
	>3      string          89a             (version 89a)

This entry also lists the resolution of your GIF image:
(at least when your CPU has the same byte order as the 80386)

0x0	string		GIF		GIF picture
>0x3	string		87a		 - version %s
>0x3	string		89a		 - version %s
>0x6	short		>0		(%d
>0x8	short		>0		x %d)

Now if I only could list the number of colours!
-- 
Pim Zandbergen                          domain : pim at cti-software.nl
CTI Software BV                         uucp   : uunet!mcsun!hp4nl!ctisbv!pim
Laan Copes van Cattenburch 70           phone  : +31 70 3542302
2585 GD The Hague, The Netherlands      fax    : +31 70 3512837



More information about the Comp.unix.admin mailing list