Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!lll-winken!uunet!philmtl!philabs!nori!jcm From: jcm@nori.Philips.Com (John Martin) Newsgroups: comp.lang.postscript Subject: compressed images Message-ID: <59760@philabs.Philips.Com> Date: 19 Jul 89 19:42:54 GMT Sender: news@philabs.Philips.Com Lines: 28 The PostScript "image" operator works as follows: image The simplest case uses {currentfile picstr readhexstring pop} as the procedure to provide the image data, followed by the image represented as hexadecimal strings. Has anyone implemented a PostScript run length decoder procedure that will allow run length compressed files to be sent to the printer? Assume that the compression is done by a C program in advance. I realize that the file transmission time will be more than offset by the decompression time, but am willing to trade off time for file size. I have made several attempts at getting this to work, but have run into problems because of limited stack size, and inconsistent treatment of whitespace characters by "read", "readhexstring", and "readline". I would appreciate any suggestions. Thanks very much. John Martin Philips Labs jcm@philabs.philips.com tel 914-945-6406 fax 914-945-6552