home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!uknet!mucs!lilleyc
- From: lilleyc@cs.man.ac.uk (Chris Lilley)
- Newsgroups: comp.graphics
- Subject: Re: HELP! XWD -> GIF/PICT
- Message-ID: <5730@m1.cs.man.ac.uk>
- Date: 13 Aug 92 00:07:07 GMT
- References: <1992Aug12.172514.24659@oracle.pnl.gov>
- Sender: news@cs.man.ac.uk
- Reply-To: lilleyc@cs.man.ac.uk (Chris Lilley)
- Organization: Department of Computer Science, University of Manchester UK
- Lines: 39
-
- In article <1992Aug12.172514.24659@oracle.pnl.gov> d3g450@tnp_op.pnl.gov (MC Pottier) writes:
-
- > I need to convert XWD images from a Sun sparcstation to either a PICT or
- >GIF format. Does anyone know of a RELIABLE way of doing this? (utilities,
- >programs, applications). I've tried the ppm utilities, (xwdtoppm ppmtogif) and
- >they don't work. I end up with black bitmaps...
-
- First, are you sure the XWD are correct, you are using the latest
- version,etc
-
- After that, you can avoid the ppm to gif bit, but its tricky. I do not
- know of a way to convert xwd to anything much other than ps or ppm.
-
- You will need to know the gamma of your monitor for this, as it
- assumes corrected (linear) RGB values.
-
- xwd (yor preferred options) | xwdtopnm |ppmtorle | rleflip | rleswap
- -t 2,1,0 |to8 -g (yourgamma) | rletogif > file.gif
-
- rleflip is because the origins are different for xwd and rle files,
- rleswap because they store RGB in different orders. to8 is an
- optimised 24 to 8 quantiser. It emits an 8 bit file with an assumed
- gamma of 2.5. You can change that if it is not suitable.
-
- I use a similar pipeline to display 24 bit gamma corrected versions of
- un-gamma corrected 24bit windows. xwdtopnm works fine for me. I can't
- say about ppmtogif, I don't use it.
-
-
-
-
- --
- Chris Lilley
- ---------------------------------------------------------------------------
- Technical Author, ITTI Computer Graphics and Visualisation Training Project
- Computer Graphics Unit, Manchester Computing Centre, Manchester, UK
- Internet: lilley@cgu.mcc.ac.uk Janet: lilley@uk.ac.mcc.cgu
- Voice: +44 (0)61 275 6095 Fax: +44 (0)61 275 6040
- ---------------------------------------------------------------------------
-