Article View: comp.lang.postscript
Article #14Printing JPEG-EPS images on PS level 2 printer
From: Samuli Jokipaltio
Date: Tue, 27 Oct 1992 22:25
Date: Tue, 27 Oct 1992 22:25
58 lines
2047 bytes
2047 bytes
I have few images compressed with Adobe Photoshop's "Adobe JPEG
Compress" Plug-in and they are in PostScript format. The header states
that I must have a level 2 printer to print these with, but when I try
to print them with my LaserWriter IIf, it only gives an PostScript error
(%% Image - TypeCheck ...%%)
What to do? Where is the problem?
Here's the header if someone is interested (from a grayscale pic):
%!PS-Adobe-3.0 EPSF-3.0
%%Creator: Adobe JPEG Compressor
%%Title: Test Image.JPEG
%%CreationDate: 14.10.1992 00:19
%%BoundingBox: 0 0 400 400
%%SuppressDotGainCompensation
%%DocumentData: Clean7Bit
%%EndComments
%%BeginProlog
%%EndProlog
%%BeginSetup
%%EndSetup
/l2 systemdict /languagelevel known
{languagelevel 2 ge} {false} ifelse def
/r 400 def /c 400 def
/DI {
/x 128 string def currentfile x readline pop pop
72 65536 mul 4718592 div dup c mul exch r mul scale
/DeviceRGB setcolorspace
/Data currentfile /ASCII85Decode filter /DCTDecode filter def
7 dict begin /ImageType 1 def
/Width c def /Height r def
/ImageMatrix [c 0 0 r neg 0 r] def
/BitsPerComponent 8 def
/Decode [0 1 0 1 0 1] def
/DataSource Data def currentdict end image } def
/DB {.9 setgray 0 0 moveto 0 r lineto
c r lineto c 0 lineto fill 0 setgray
/ratio {c 360 div mul} def
/Helvetica findfont 15 ratio scalefont setfont
20 ratio 5 ratio moveto
(JPEG Encoded image needs PostScript Level 2) show
/x 128 string def
{currentfile x readline {} {pop exit} ifelse
(~>) search {pop pop pop exit} {pop} ifelse
} loop } def
l2 {DI} {DB} ifelse
%%BeginData: 157 ASCII Lines
.
.
.
%%EndData
Thanks!
Samuli Jokipaltio
Univ. of Helsinki
Technical Details
Message-ID:
<1992Oct27.222522.19519@klaava.Helsinki.FI>Path:
arc1-ca.pugleaf.net!sparky!uunet!pipex!unipalm!uknet!mcsun!news.funet.fi!hydra!klaava!jokipaltShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!pipex!unipalm!uknet!mcsun!news.funet.fi!hydra!klaava!jokipalt From: jokipalt@klaava.Helsinki.FI (Samuli Jokipaltio) Newsgroups: comp.lang.postscript Subject: Printing JPEG-EPS images on PS level 2 printer Message-ID: <1992Oct27.222522.19519@klaava.Helsinki.FI> Date: 27 Oct 92 22:25:22 GMT Organization: University of Helsinki Lines: 58