Image converting tools 

gifconv 

Usage 

ls *.gif | doeach.pl gifconv @_ ~/discards/gens/eps/@n.eps
ls *.gif | doeach.pl gifconv @_ -format eps @b grep BoundingBox: @g @_.bb

cmd:nconvert 

nconvert comes with the xnview package.

$ nconvert -canvas 520 130 testimg.new.jpg
** NCONVERT v3.72 Copyright 1991-2002 Pierre-E Gougelet

Conversion of testimg.new.jpg into testimg.new.jpg OK

well done, right to the size, image to the middle, just that the background is black.

NB, after an exhausted search on google on 2004.11.06, I concluded that there is no debian package for xnview/nconvert.

cmd:xwd - dump an image of an X window 

Usage 

xwd | xwdtopnm | ppmquant 256 | ppmtojpeg > clip.jpg
xwd -frame | xwdtopnm | ppmquant 256 | ppmtogif -interlace > clip.gif
xwd | tee c1 | xwdtopnm | ppmtogif -interlace > clip.gif; bakfs -s gif clip.gif
display !$ &
xwd -frame | xwud

Info 

xwd - dump an image of an X window

Xwd is an X Window System window dumping utility. Xwd allows X users to store window images in a specially formatted dump file. This file can then be read by various other X utilities for redisplay, printing, editing, formatting, archiving, image processing, etc. The target window is selected by clicking the pointer in the desired window. The keyboard bell is rung once at the beginning of the dump and twice when the dump is completed.

-frame  This option indicates that the window manager frame should be
        included when manually selecting a window.

Source 

$ rpmqf /usr/X11R6/bin/xwd
XFree86-4.1.0-3
$ rpmqf /usr/bin/ppmtogif
netpbm-progs-9.14-2

Trying History 

Symptom 

X Error of failed request:  BadValue (integer parameter out of range for operation)
 Major opcode of failed request:  91 (X_QueryColors)
 Value in failed request:  0x4007dc
 Serial number of failed request:  2093
 Current serial number in output stream:  2093

Solution 

Do not start Netscape in "private color map" mode, ie, launch Netscape using 'ns' that has parameter '-install'.

cmd:xwdtopnm 

Usage 

SYNOPSIS xwdtopnm [xwdfile]

Info 

xwdtopnm - convert a X11 or X10 window dump file into a portable anymap

Help 

Reads a X11 or X10 window dump file as input. Produces a portable anymap as output. The type of the output file depends on the input file - if it's black & white, a pbm file is written, else if it's grayscale a pgm file, else a ppm file. The program tells you which type it is writing.

Using this program, you can convert anything on an X workstation's screen into an anymap. Just display whatever you're interested in, do an xwd, run it through xwdtopnm, and then use pnmcut to select the part you want.

SEE ALSO

anytopnm(1), rasttopnm(1), tifftopnm(1), xwdtopnm(1), pnmtops(1),
pnmtorast(1), pnmtotiff(1), pnmtoxwd(1), pnmarith(1), pnmcat(1),
pnmconvol(1), pnmcrop(1), pnmcut(1), pnmdepth(1), pnmenlarge(1),
pnmfile(1), pnmflip(1), pnmgamma(1), pnmindex(1), pnminvert(1),
pnmmargin(1), pnmnoraw(1), pnmpaste(1), pnmrotate(1), pnmscale(1),
pnmshear(1), pnmsmooth(1), pnmtile(1), ppm(5), pgm(5), pbm(5)
giftoppm(1), gouldtoppm(1), ilbmtoppm(1), imgtoppm(1), mtvtoppm(1),
pcxtoppm(1), pgmtoppm(1), pi1toppm(1), picttoppm(1), pjtoppm(1),
qrttoppm(1), rawtoppm(1), rgb3toppm(1), sldtoppm(1), spctoppm(1),
sputoppm(1), tgatoppm(1), ximtoppm(1), xpmtoppm(1), yuvtoppm(1),
ppmtoacad(1), ppmtogif(1), ppmtoicr(1), ppmtoilbm(1), ppmtopcx(1),
ppmtopgm(1), ppmtopi1(1), ppmtopict(1), ppmtopj(1), ppmtopuzz(1),
ppmtorgb3(1), ppmtosixel(1), ppmtotga(1), ppmtouil(1), ppmtoxpm(1),
ppmtoyuv(1), ppmdither(1), ppmforge(1), ppmhist(1), ppmmake(1),
ppmpat(1), ppmquant(1), ppmquantall(1), ppmrelief(1), pnm(5), pgm(5),
pbm(5)

best software for scanning books 

Newsgroups:  alt.binaries.e-book
Date:        Fri, 27 Feb 2004 04:52:55 GMT
>I just got a HP Scanjet 6350.  I'm working on scanning in some new books,
>but I'm not sure what the best software to get is.  Thanks for your help!

Most folks here use Finereader. I have Omnipage Pro 14. It works great and I'm happy with it.

MFB