nulldeflate scripts

Description

I wrote these scripts so that I could write PNG files without the hassle of installing the appropriate CPAN libraries. I also dual-boot, so I usually try not to mess with Perl libraries on Windows (too much trouble.) These Perl scripts allow me to do some image data processing on a limited scale, 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. The Info-zip specification for zip archives was used for the zip script.

The scripts work on strings of data. nullgzip.pl wraps a few bytes around a specified file to turn it into a gzipped version of the said file. File size is of course, increased, because no compression is performed. The nullpng*.pl scripts takes a pixel array and composes a data string in the PNG file format. nullpng2.pl works for 2-bit monochrome, nullpng8.pl for 8 bit grayscale, and nullpng24.pl for 24 bit colour. Simple test scripts are available which demonstrates the generation of uncompressed PNG images. nullzip.pl creates an archive of directory entries and uncompressed files using the basic zip format (no zip64 header support.)

Downloads

Practically, these scripts are trivial and are not really copyrightable, but for the sake of psychotic legal sharks and further abusing the broken global intellectual property system, I have tagged a very liberal MIT-style license to them. ;-)


Copyright © 2004 Man Kein Hong all rights reserved. Last Revised: 2004-08-27.
Home:
http://www.geocities.com/keinhong/ | Canonical URL: http://www.geocities.com/keinhong/nulldeflate.html
Hosted by www.Geocities.ws

1