Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!julius.cs.uiuc.edu!apple!well!jef From: jef@well.sf.ca.us (Jef Poskanzer) Newsgroups: comp.graphics Subject: Re: What format used in this file? Message-ID: <21003@well.sf.ca.us> Date: 5 Oct 90 16:30:53 GMT References: <8812@helios.TAMU.EDU> Reply-To: Jef Poskanzer Organization: Paratheo-Anametamystikhood Of Eris Esoteric, Ada Lovelace Cabal Lines: 31 In the referenced message, guansy@cs.tamu.edu (Sheng-Yih Guan) wrote: }I used GBA-Scanin software to scan in a color picture and store it in }Sun output format. Then I shifted it to our Sun workstation. Using }ALV package, I found that the configuration of the file is: } xsize = 300 } ysize = 230 } depth = 8 }But, the size of the file is 207800. }0000000 59a6 6a95 0000 012c 0000 00e6 0000 0008 |_______| |_______| |_______| |_______| Sun width height depth raster 300 230 8 magic decimal decimal number }0000020 0001 0d88 0000 0001 0000 0001 0000 0300 |_______| |_______| |_______| |_______| length type maptype maplength 69000 standard equalrgb 768 decimal decimal The rest is part of the colormap, and it looks like a ramp. So, if the file's length is really ~207000 instead of ~69000, then I'd say that whatever wrote the file is broken. --- Jef Jef Poskanzer jef@well.sf.ca.us {ucbvax, apple, hplabs}!well!jef My .forward contains "| sed '1,/^$/d | /bin/sh ; exit 0".