[comp.windows.x] Motif xwd

tron1@tronsbox.UUCP (HIM) (04/11/90)

Ok .. Here is what I did.

"xwd -root >/tmp/root.xwd"   (I tried the -xy option as well)

At the time, I was running the SYS V 386 server in 800x600x16 color mode.
The resulting ".xwd" file was to be converted to a GIF.

neither the origional "xwdtopbm" or the one supplied by ISC with my MOTIF 
system handle that file! (I want to go xwdtopbm | pbmtogif) 

The error is "cannot handle bitplanes !=1" !

Does anyone have a converter that will handle color xwd files ??

****************************************************************************
"I Saw Cleopatra Alive and Well in Daytona Beach" Claims Man.

Kenneth J. Jamieson: Xanadu Enterprises Inc. "Professional Amiga Software"
{uunet , ddsw1}!tronsbox!tron1    origional text is Copryright 1990.
      Sysop, Romantic Encounters BBS - (201)759-8450 / (201)759-8568 
****************************************************************************

brian@padouk.ima.isc.com (Brian R. Holt) (04/11/90)

In article <26221e16:57comp.windows.x@tronsbox.UUCP>,
tron1@tronsbox.UUCP (HIM) writes:
|> "xwd -root >/tmp/root.xwd"   (I tried the -xy option as well)
|> 
|> neither the origional "xwdtopbm" or the one supplied by ISC with my MOTIF 
|> system handle that file! (I want to go xwdtopbm | pbmtogif) 
|> 
|> The error is "cannot handle bitplanes !=1" !

Yup, that's what I said. You will need to get the pbmplus package 
(from expo.lcs.mit.edu), and then use the xwdtoppm to convert it 
to a portable pixmap file. Then, you can use ppmtogif to convert
it to gif. pbm is for monochrome bitmaps only. ppm can handle
color pixmaps. 

Email	brian@ima.isc.com	"Dancing is not allowed in the Ballroom."
Phone	617-661-7474 x206		Longfellow's Wayside Inn, 1990
Fax	617-661-2070
near the last bend in the Charles River

jef@well.sf.ca.us (Jef Poskanzer) (04/11/90)

In the referenced message, tron1@tronsbox.UUCP (HIM) wrote:
}neither the origional "xwdtopbm" or the one supplied by ISC with my MOTIF 
}system handle that file! (I want to go xwdtopbm | pbmtogif) 
}The error is "cannot handle bitplanes !=1" !
}Does anyone have a converter that will handle color xwd files ??

Gee, did you try xwdtopPm?
---
Jef

  Jef Poskanzer  jef@well.sf.ca.us  {ucbvax, apple, hplabs}!well!jef
 "The reasonable man adapts himself to the world; the unreasonable one
   persists in trying to adapt the world to himself.  Therefore all
   progress depends on the unreasonable man." -- George Bernard Shaw

ries@venice.SEDD.TRW.COM (Marc Ries) (04/13/90)

In article <26221e16:57comp.windows.x@tronsbox.UUCP> tron1@tronsbox.UUCP (HIM) writes:
>Ok .. Here is what I did.
>"xwd -root >/tmp/root.xwd"   (I tried the -xy option as well)
>At the time, I was running the SYS V 386 server in 800x600x16 color mode.
>The resulting ".xwd" file was to be converted to a GIF.
>neither the origional "xwdtopbm" or the one supplied by ISC with my MOTIF 
>system handle that file! (I want to go xwdtopbm | pbmtogif) 
>The error is "cannot handle bitplanes !=1" !
>Does anyone have a converter that will handle color xwd files ??

 Along the same lines, I wanted to get some HP Motif screen dumps
 into a PC-based document, via:

   xwd -root | xwdtoppm | ppmtogif > xwd.gif

 I transferred the resulting file (without mods) to a floppy via
 the HP300 Dos floppy sub-system.

 On my PC, neither Hijaak or Grafwk would do anything with them (Hijaak giving
 an file error message and Grafwk reading the file but not displaying
 any picture).  I checked the headers of the gif files and they "looked"
 GIF87-ish and where about the right size (40-60K).

 Any ideas?


-- 
Marc Ries
           ries@venice.sedd.trw.com     (ARPA)
           somewhere!trwind!venice!ries (UUCP)
           #include <std.disclaimer>

rmtodd@servalan.uucp (Richard Todd) (04/13/90)

ries@venice.SEDD.TRW.COM (Marc Ries) writes:

> Along the same lines, I wanted to get some HP Motif screen dumps
> into a PC-based document, via:

>   xwd -root | xwdtoppm | ppmtogif > xwd.gif

> On my PC, neither Hijaak or Grafwk would do anything with them (Hijaak giving
> an file error message and Grafwk reading the file but not displaying
> any picture).  I checked the headers of the gif files and they "looked"
> GIF87-ish and where about the right size (40-60K).

  Hmm, that's interesting.  By "not displaying any picture" do you mean you 
see nothing but a big black void where you'd expect the image to be?  I've
been having the same problem with ppmtogif-created pictures on my Mac.  Both
xloadimage (patchlevel 3, yeah I know I probably oughta upgrade), and 
Vision Lab Demo show a completely black image when displaying an image I 
created with ppmtogif.  It's looking like there may be a bug in ppmtogif 
somewhere, or at least a subtle incompatibility with many GIF-handling
programs.  Alas, I don't understand GIF format well enough to try and 
debug this....
--
Richard Todd	rmtodd@uokmax.ecn.uoknor.edu  rmtodd@chinet.chi.il.us
	rmtodd@servalan.uucp
Motorola Skates On Intel's Head!