From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d4db,8c088f90974e5231,start X-Google-Attributes: gid10d4db,public X-Google-ArrivalTime: 1994-05-22 13:22:50 PST Newsgroups: comp.os.linux.announce Path: bga.com!news.sprintlink.net!hookup!news.moneng.mei.com!howland.reston.ans.net!math.ohio-state.edu!jussieu.fr!univ-lyon1.fr!ghost.dsi.unimi.it!batcomputer!cornell!bounce-bounce From: m91dps@ecs.ox.ac.uk (Disaster prone simpleton) Subject: Magic for rle images Message-ID: Followup-To: comp.os.linux.misc Keywords: rle /etc/magic entry Sender: mdw@cs.cornell.edu (Matt Welsh) Reply-To: m91dps@ecs.ox.ac.uk (Disaster prone simpleton) Organization: Oxford University Undergraduate Engineering & Comp Sci Lab, UK Date: Sun, 22 May 1994 20:10:04 GMT 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.