Notice! This document is currently in Archived status.
The content of this document may be incorrect or outdated.

Print this article Edit this article

Creating an XWD file and converting it to a GIF file.

Purdue Engineering Computer Network


Xwd is an X Window System dumping utility. Xwd allows X users to store window images in a specially formated dump file. This file can then be read by various other X utilities for redisplay, printing, editing, etc.

To make the XWD file:

At your window prompt type:

	xwd -out filename

filename being the name you want to call your xwd file. Many users call their xwd files file.xwd.

In a few moments, the mouse pointer will change to a "cross" shape. Move the mouse pointer to the window you want to dump and press any mouse button. The keyboard bell is rung once at the beginning of the dump and twice when the dump is completed.

Now you have an xwd file.

To convert an XWD file to a GIF file:

Our xwd file is called file.xwd. At your window prompt type:

/usr/local/bin/magick/convert file.xwd gif:file.gif

file.gif being the new gif file.

convert can be used on other image formats as well. For more information, run the command man convert from a UNIX command line.

Last Modified: Dec 19, 2016 11:12 am US/Eastern
Created: May 17, 2007 12:18 pm GMT-4 by admin
JumpURL: