chipset FBDEV # Use kernel fbdev, instead of direct hardware.in the file /etc/vga/libvga.config. With this, applications that use SVGAlib will now indirectly use the video framebuffer. I rummaged around a bit through the zgv man pages, trying various things. One clue I searched on to see if there was something that might get it working consistently was the word 'force'. My notion was that perhaps something was being misinterpreted by the program and it 'forcing' some initial condition might solve the problem. I finally found a switch '--force-viewer-8bit' (or briefly '-j') that seems to do the trick. No solarization effects. It may be that some images could be displayed with greater sharpness or color accuracy, '8bit' throwing away parts of 16/24 bits of pixel information, but everything *looks* reasonable. Nothing is reduced to psychedelic poster (or even comicbook) appearence. The worst thing I've encountered so far is that after looking at information on the image file sometimes I need to refresh the display with a CTL-L or CTL-R, but this is a minor point. To make this default behaviour, edit the file /etc/zgv.conf and add the line:
force-viewer-8bit onA few other settings I include in the file (you can look them up in the man page) are:
zoom on centre on auto-mode-fit on jpeg-speed 1 mousescale 2.0 mouse on block-cursor on fs-perfect-cols on jpeg-index-style 3 fs-thick-text onA couple that apparently must be left out of the configuration file and placed among command line switches are:
# show-dimensions on # reload-delay 1000000 # - fatal in this fileA few of the more important commands of zgv:
? - help ESC - return to previous mode (eventually exiting) Enter - go to the next image v - toggle file selector mode between graphical or text / - help for video modes available : - display file information ; - reset brightness/contract/etc. to default Alt-u - generate/update thumbnail images Ctrl-I - start a slide show of files tagged in file selector mode. Ctrl-R - refresh view/directory Ctrl-L - refresh view/directory Right Mouse button - context sensitive menu Left Mouse button - select an image or directory in file selector/directory view modeYou can navigate the file selector or large images with cursor, vi or (what I think are) WordStar keys. I leave exploring the various zooming, rotating, mirroring, flipping, contrast, brightness, gamma, rendering and file tagging capabilities to you, the reader. The ironic reality is that using this as the viewer for a text mode web browser, the surfer has more control over image viewing than any I've encountered with so called graphical web browsers. A few of the command line switches can be of use. The '--reload-delay 100000' mentioned above effectively sets the default slide show interval to totally at the users decision to move on, instead of the default 4-sec. '--show-dimensions' (or -s) causes zgv to print the dimensions of displayed files to standard out, perhaps to pass on to some program for image processing. '-T' causes zgv to print the names of tagged files to standard out, where they could (for instance) be passed on via a script to CUPS and printed out, or copied/moved to a holding directory. And this really is the tie-in with these article with on .pdf. After using ghostscript to convert the pages of a pdf document to images, you can browse through them with zgv in file selector mode, tag some, and have them printed out.