Subject: Magic for rle images
From: [email-masked] (Disaster prone simpleton)
Date: Sun, 22 May 1994 20:10:04 GMT
Newsgroups: comp.os.linux.announce

Here's a magic file entry for rle images. 24-bit images tend to produce
foo.rle size 42x42, 3 comps each 8 bits
(for arbitary, prossibly different values of 42). Also a few other things
you might like to add as well are included

----------------------------------------------------------------------
#
# magic.rle
# freely redistribuable under the GPL
#
0	short		0xcc55		rle image data
>6	short		>0		%d x
>8	short		>0		%d,
>2	short		>0		x offset by %d,
>4	short		>0		y offset by %d,
>11	byte		=0		colour map
>11	byte		>1		%d comps each
>12	byte		=1		1 bit
>12	byte		>1		%d bits

#
#magic.jpeg
#no garentees but should catch most JPEG images...
#
0	byte		0xff		JPEG image data
0	byte		0xd8		JPEG image data

#
#magic.fbm
#culled from xli source
#
0	string		%bitmap		fbm image data

#
#magic.acorn (for people who hit acorn stuff a lot)
#I can't create either SPARK or ArcFS archives so I
#have not tested this stuff
#
0	byte		0x1a		RISC OS archive
>1	string		archive\000	 (ArcFS format)

#
#magic.lzh
#does not seem to be present in my standard distribution magic file
#
0	string		\037\240	LZH compressed data

--
Mail submissions for comp.os.linux.announce to: [email-masked]
Be sure to include Keywords: and a short description of your software.