
				nulldeflate

Zero compression Perl scripts for quick-and-dirty development work.
Includes zero compression deflate, zlib, gzip, png and zip functions.

--

Copyright (C) 2004 by Kein-Hong Man (esq.) <mkh@pl.jaring.my>
The scripts are licensed under a very liberal MIT-style license. See
headers for individual scripts for the actual license information.
These scripts are so short, they don't have much direct commercial
value anyway, so use away. :-) If you really do have concerns, drop
me a line and I will accomodate you.

--

PRELIMINARIES

I wrote these scripts so that I could write PNG files without the
hassle of installing the appropriate CPAN libraries. I also dual-boot
Linux and Win98, and I usually try not to mess with libraries on
Windows--too much trouble. Thus, these Perl scripts allow me to do
some image data processing on a limited scale, but with the ease of
coding in Perl. If you are not looking for real hot performance, these
scripts should work fine. The scripts themselves were written from
scratch from the relevant RFCs and W3C specifications for deflate,
zlib, gzip, PNG and zip (specifications from info-zip site.)

--

FILES

Most of the scripts are self-contained, so you don't need to download
extra libraries or anything else. Total files in this set: 14.

README			this file...
crc32.pl		unused precomputed table lookup for CRC calc
nulldeflate.pl		zero compression deflate function
nullzlib.pl		zero compression zlib function
nullgzip.pl		zero compression gzip function
nullpng2.pl		zero compression monochrome PNG generator
nullpng8.pl		zero compression 8 bit grayscale PNG generator
nullpng24.pl		zero compression 24 bit colour PNG generator
nullzip.pl		zero compression zip archive writer (basic)

test-nullgzip.pl	test script for nullgzip.pl
test-nullpng2.pl	test script for nullpng2.pl
test-nullpng8.pl	test script for nullpng8.pl
test-nullpng24.pl	test script for nullpng24.pl 
test-nullzip.pl		test script for nullzip.pl

--

NOTES

nullzlib.pl and nullgzip.pl are like wrappers, they add some bytes so
that your file then appears to be in a compressed format.

The nullpng*.pl scripts do not actually write out a PNG file, they just
process your bitmap data into a PNG data string. File writing code can
be found in the test examples.

The store method for nullzip.pl will simplify the code further. I have
used the nulldeflate.pl functions in nullzip.pl simply as an exercise.

--

Enjoy!!

Kein-Hong Man (esq.)
Kuala Lumpur
Malaysia 20040819
