[Gridflow-dev] making screenshots

Mathieu Bouchard matju at sympatico.ca
Sun Jan 2 09:26:28 EST 2005

for those who are looking for quicker ways to make screenshots:

xwd -frame | xwdtopnm | pnmtopng > hello.png

then the mouse cursor turns to a small crosshair.

then you click on a window of your choice.

you will need the package "netpbm" available in most distros.

here's a more sophisticated one that would have helped Stephanie:

xwd -frame | xwdtopnm | pnmcut -top 39 -bottom -28 -left 6 -right -28 | 
pnmcrop | pnmtopng > hello.png

except that the four values in it are dependent on the window manager and
its style and also the style of pd (e.g. changing the font of the
menubar), so those have to be retuned.

To find those values, first make a complete screenshot and then, in GIMP,
zoom a lot and count the number of pixels on each side. Then negate the
bottom and right values.

there's a manpage for each of those commands. use the man command or try
the url man:pnmcut in konqueror. those "man:" url's don't work in any
other browser.

Mathieu Bouchard -=- Montréal QC Canada -=- http://artengine.ca/matju

More information about the Gridflow-dev mailing list