Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!zaphod.mps.ohio-state.edu!rpi!bu.edu!snorkelwacker!paperboy!osf.org!dbrooks From: dbrooks@osf.org (David Brooks) Newsgroups: comp.windows.x Subject: Re: Help needed; Display integer images on X11 Message-ID: <1990Sep27.130626@osf.org> Date: 27 Sep 90 17:06:26 GMT References: <25775.26ff771d@kuhub.cc.ukans.edu> Sender: news@OSF.ORG Reply-To: dbrooks@osf.org (David Brooks) Organization: Open Software Foundation Lines: 33 In article <25775.26ff771d@kuhub.cc.ukans.edu>, tsatsoul@kuhub.cc.ukans.edu writes: |> |> I need to display bw, 8-bit images on an X11 color server. Can anybody tell |> me if there is a program that would do so? I know of a program that |> displays gif images on color servers, but how do I turn a file of integers |> into a gif file? As is usual with questinos like this, the answer is "use Jef Poskansker's excellent PBMPLUS package. We'll assume you have a x picture, and have w*h integers between 0 (black) and (white) in the usual L-R, T-B ordering. If you don't hack at it until you do. Edit such a file so that the first three lines read: P2 Now say: ppmtogif file-with-integers > file.gif Magic. -- David Brooks dbrooks@osf.org Systems Engineering, OSF uunet!osf.org!dbrooks "A Loaf of Bread, a Jug of Wine, and Six Spades Redoubled -- Omar somebody.