* Translating .xwd files?
@ 1998-10-07 17:55 kevin
1998-10-07 18:25 ` Jeff Sturm
0 siblings, 1 reply; 5+ messages in thread
From: kevin @ 1998-10-07 17:55 UTC (permalink / raw)
To: axp-list; +Cc: kevin
Hi,
I'm wanting to translate (using a script) X-window dump files into
other formats, specifically postscript. On non-Alpha platforms,
I can do this using the netpbm package--use xwdtopnm to generate a
"portable anymap file" and then I can use pnmtops to translate to
Postscript. The netpbm package is installed on the Linux Alpha's,
but I can't get xwdtopnm to work: I get thie message:
xwdtopnm: unknown XWD file version: 33554432
Does anyone know of a version of xwdtopnm (or another command-line
type method) that will work on Alpha's? (The problem is also seen
on Digital Unix). I suspect that there's something unique about
.xwd files on Alpha-powered machines.
Thanks,
Kevin Tyle <kevin@meso.com>
MESO, Inc.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Translating .xwd files?
1998-10-07 17:55 Translating .xwd files? kevin
@ 1998-10-07 18:25 ` Jeff Sturm
1998-10-07 20:29 ` kevin
0 siblings, 1 reply; 5+ messages in thread
From: Jeff Sturm @ 1998-10-07 18:25 UTC (permalink / raw)
To: kevin; +Cc: axp-list
Why not just use "xpr -device ps"?
Jeff
On Wed, 7 Oct 1998 kevin@meso.com wrote:
> Hi,
>
> I'm wanting to translate (using a script) X-window dump files into
> other formats, specifically postscript. On non-Alpha platforms,
> I can do this using the netpbm package--use xwdtopnm to generate a
> "portable anymap file" and then I can use pnmtops to translate to
> Postscript. The netpbm package is installed on the Linux Alpha's,
> but I can't get xwdtopnm to work: I get thie message:
>
> xwdtopnm: unknown XWD file version: 33554432
>
> Does anyone know of a version of xwdtopnm (or another command-line
> type method) that will work on Alpha's? (The problem is also seen
> on Digital Unix). I suspect that there's something unique about
> .xwd files on Alpha-powered machines.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Translating .xwd files?
1998-10-07 18:25 ` Jeff Sturm
@ 1998-10-07 20:29 ` kevin
1998-10-08 3:07 ` Wes Bauske
0 siblings, 1 reply; 5+ messages in thread
From: kevin @ 1998-10-07 20:29 UTC (permalink / raw)
To: Jeff Sturm; +Cc: axp-list
Jeff Sturm <jsturm@gatecom.com> wrote:
>
>Why not just use "xpr -device ps"?>
>
Well, that will work for black and white but I need color
postscript output (I forgot to mention that little detail:) ).
But I tried "xpr -device pjet -output color.ps test.xwd" on
our Digital Unix machine (I can't find xpr on our Alpha Linuxes)
and I get "Could not read xwd file's image." in that case.
--Kevin
>Jeff
>
>
>On Wed, 7 Oct 1998 kevin@meso.com wrote:
>> Hi,
>>
>> I'm wanting to translate (using a script) X-window dump files into
>> other formats, specifically postscript. On non-Alpha platforms,
>> I can do this using the netpbm package--use xwdtopnm to generate a
>> "portable anymap file" and then I can use pnmtops to translate to
>> Postscript. The netpbm package is installed on the Linux Alpha's,
>> but I can't get xwdtopnm to work: I get thie message:
>>
>> xwdtopnm: unknown XWD file version: 33554432
>>
>> Does anyone know of a version of xwdtopnm (or another command-line
>> type method) that will work on Alpha's? (The problem is also seen
>> on Digital Unix). I suspect that there's something unique about
>> .xwd files on Alpha-powered machines.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Translating .xwd files?
1998-10-07 20:29 ` kevin
@ 1998-10-08 3:07 ` Wes Bauske
0 siblings, 0 replies; 5+ messages in thread
From: Wes Bauske @ 1998-10-08 3:07 UTC (permalink / raw)
To: axp-list
kevin@meso.com wrote:
>
> Jeff Sturm <jsturm@gatecom.com> wrote:
> >
> >Why not just use "xpr -device ps"?>
> >
>
> Well, that will work for black and white but I need color
> postscript output (I forgot to mention that little detail:) ).
> But I tried "xpr -device pjet -output color.ps test.xwd" on
> our Digital Unix machine (I can't find xpr on our Alpha Linuxes)
> and I get "Could not read xwd file's image." in that case.
>
> --Kevin
Help me understand your problem a bit better. Where did you
get the *.xwd file from? Reason I ask is I do screen shot captures
in color with xv all the time and convert to PS or JPG or whatever
using xv too. It's not a command line thing though. According to
xv's man page, it understands *.xwd files. Anyways, just
curious what they are...
Also, maybe Image Magick's SW "display" can help you out.
Wes
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Translating .xwd files?
[not found] <9810082243.AA19670@nimbus.meso.com>
@ 1998-10-09 5:13 ` Wes Bauske
0 siblings, 0 replies; 5+ messages in thread
From: Wes Bauske @ 1998-10-09 5:13 UTC (permalink / raw)
To: kevin; +Cc: axp-list@redhat.com
kevin@meso.com wrote:
>
> Hi Wes,
>
> Well, we have 4.1, 4.2, 5.0, and 5.1 Alphas and they all have the netpbm
> programs--we got the OS pre-installed, so they still must be
> pretty standard--probably no one uses xwdtopnm much so no one
> has noticed.
>
> At least, my problem has been solved. Turns out that ImageMagick
> does have a command line interface, called "convert" which does
> the trick--converts from .xwd to (color) .ps, GIF, and a whole lot
> else. Pre-installed on the Linuxes, I installed it on our Digital Unix
> and everybody's happy now. Another example of RTF Man pages. I would
> surmise that the netpbm stuff, being from 1990-91, is falling by the wayside
> in favor of the versatile ImageMagick. So I doubt we'll see a fix
> for xwdtopnm, although it really should be done if it is distributed with
> RH Alpha packages.
>
> Thanks for your interest! I'm going to summarize this and re-post
> to the axp-list.
>
All you need to do is remove all the 'long' definitions
and replace them with 'int' in xwdtopnm.c, x10wd.h, and
x11wd.h. Then recompile and it worked fine on my test
case....
Probably could do that for all the source and it would
work OK. Just poor selection of variable size on the
programmer's part. Jef Poskanzer, according to the header.
Also, it seems this code and the original Intel binary,
are not able to handle more than 8 bit displays. Given
the code was written in 90-91, that isn't surprising.
Not many people had good graphics in that time frame.
Didn't look at whether that is easy to fix or not...
Wes
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~1998-10-09 5:18 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-10-07 17:55 Translating .xwd files? kevin
1998-10-07 18:25 ` Jeff Sturm
1998-10-07 20:29 ` kevin
1998-10-08 3:07 ` Wes Bauske
[not found] <9810082243.AA19670@nimbus.meso.com>
1998-10-09 5:13 ` Wes Bauske
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox