
	This version is not fully tested yet, so it may have some bugs.

				View 1.1


	View is a viewer for GIF and JPEG (JFIF) images. It is NOT an X11 
	application - it requires only VGA. To compile the source you will
	need the VGALIB (any version) - available at all Linux sites.

	View 1.1 is based on the work of the Independent JPEG Group 
	(jpeg version 4, see the file jpeg4.readme),
	and the GIF library version 1.2 by Gershon Elber.
	(GIF is a trademark of CompuServe Inc.)

    	1.Setup:
	Look at the Makefile - you may wish to adjust some flags.
	DEF_VMODE is the default vga mode, DEF_COLORS is the default
	color resolution (look at vga.h for possible modes).
	I assume you have libvga.a in /usr/lib, and vga.h in /usr/include
	The makefile builds the gif library by default, the jpeg library
	is already compiled (the sources are too big) - just copy
	libjpeg.a to /usr/lib. (If you want to compile libjpeg.a see
	section 3).

	2.Usage:
	
	view [switches] image

	Image is the name of the file - it must have one of the
	following extensions: .gif,.GIF,.jpg,.JPG

	The possible switches are:
	-grayscale      Force grayscale output
	-mode vgamode   The videomode - this is an integer (1..8),
	                look at the vga.h to see the values for
			the different modes.
	-scale factor   Scale the image - the factor is in % (10..100)
			You cannot magnify images - may be in the next
			version of view. Currently, you can only use the
			values 10,25,50,100 (100 is default).     
	-chunk value	The value specifies the number of pixels that
			will be scrolled by pressing an arrow key.

	If the image is bigger than the screen you can use the arrow keys
	to scroll it (first wait until the WHOLE image is decompressed).
	To exit view press 'e'.
	
	3.Compiling the JPEG 4 source under Linux:
	If you want to build libjpeg.a you will need jpegsrc.v4 -
	available at ftp.uu.net.
	How to compile:

		a. Make the following changes in the makefile.ansi:
			CC = gcc
             		add -DNO_MKTEMP -DNEED_SIGNAL_CATCHER to the CFLAGS
		
		b. mv jmemname.c jmemsys.c

		c. make -f makefile.ansi libjpeg.a
	
 

					Venzi Iliev
					(venzi@cs.tu-berlin.de)
