3 VIEW - small PNG viewer
4 -----------------------
6 This program is intended to serve as a simple console viewer for PNG
7 graphics. It also features some scripting abilities, which allow you to
8 build simple presentation.
10 In fact, using even this initial version I was able to build a nice
11 presentation of PicoBSD abilities which I used in real-life situation (you
12 can see for yourself one of the presentation's screens, fbsd.png).
14 The audience was impressed :-), especially when I asked them politely what
15 are requirements and cost to make that kind of presentation using M$
23 view [-g nnn.nnn] [-r x] filename.png
26 -g nnn.nnn screen gamma (you can adjust how bright is the
33 Under right mouse button you can find a simple menu, which tells you also
34 the hotkeys. You can shift, rotate and zoom the picture.
39 Usage is as above, but the file you give as argument is a (unix) text file
40 of the following format:
45 4 /home/clipart/logo.png
46 5 /home/present/title.png
47 6 /home/present/outline.png
48 7 /home/present/end.png
50 (of course without the line numbering or the leading space!). The line number
51 1 is magic, and must be present in order to recognize the file properly.
53 The second line tells how many pictures consist the presentation. The
54 following lines tell the file names containing the images themselves.
56 See the example in file picobsd.vu.
58 Command line arguments (gamma and resolution) are as above. You can also use
59 the pop-up menu to adjust image parameters, as well as go forward or
60 backward in the presentation.
62 Bugs, caveats, missing features
63 -------------------------------
65 * there are some bugs in libvgl which require strange workarounds, and even
66 then it doesn't work quite right. See the source for the 'XXX' comments...
68 * I didn't have time to add gamma adjustment to the pop-up menu. It's
69 simple, though, and I leave it as an exercise for the reader :-))
71 * it would be great if someone would add GIF and jpeg support.
73 * the error checking is probably weak. A bad PNG file or script file will
74 probably cause a coredump.
76 * pop-up menu facilities need more abstraction to be usable in other cases.
78 Anyway, as it is even now it's quite usable.