🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.postscript
Article #711

compressed images

#711
From: John Martin
Date: Wed, 19 Jul 1989 19:42
28 lines
1334 bytes
The PostScript "image" operator works as follows:

<width> <height> <bits/sample> <matrix> <proc> 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
Technical Details
Message-ID: <59760@philabs.Philips.Com>
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!lll-winken!uunet!philmtl!philabs!nori!jcm

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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