Usenet comp.os.linux.announce (1993-2013)
 help / color / mirror / Atom feed
From: m91dps@ecs.ox.ac.uk (Disaster prone simpleton)
Subject: Magic for rle images
Date: Sun, 22 May 1994 20:10:04 GMT	[thread overview]
Message-ID: <ann-15357.769637389@cs.cornell.edu> (raw)

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: linux-announce@tc.cornell.edu
Be sure to include Keywords: and a short description of your software.


                 reply	other threads:[~1994-05-22 20:10 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox