Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Extract images from postscript file?

16 views
Skip to first unread message

Roland Rehmet

unread,
Feb 26, 1998, 3:00:00 AM2/26/98
to

Hello All,

I have a postscript file with pixel images in it.
Where can I get information to extract these images from the
file? Is there software available? I would prefer a batch
unix utility, but any solution is ok also.

The image starts with:

/DeviceRGB setcolorspace
<<
/ImageType 1
/Width 169
/Height 235
/ImageMatrix [169 0 0 -235 0 235]
/BitsPerComponent 8
/Decode [0 1 0 1 0 1]
/DataSource currentfile
/ASCII85Decode filter
<< >> /DCTDecode filter
>>
pdfIm
s4IA>!"M;*Ddm8XA:OX[!!3,S!/(=X"pP89"pbD;#RgtD#Rh1M#RCbI&.K'Y%1Nj\
$k<^U%L`p[&ebrm&e>fr)B'G0,9e<U,:=id-RU8h-RU8B#m^eC$4.(H#n%4N%1<XX
%LrsY&JGT_%Lij\(_I8h%hB6h()IZ!'GhN')Aj;0)Bg7H+X&3\-RU8h-RU8hs1eUH

and so on ......

I would like to make a BMP GIF or something like that from it.

Thank you for your help.

Regards
Roland R.

_________________________________________________________
Roland Rehmet reh...@xs24z.tech.chemie.tu-muenchen.de
http://xs24z.tech.chemie.tu-muenchen.de:80/~rehmet/
TU-Muenchen, Lichtenbergstr 4, 85747 Garching, GERMANY

Helge Blischke

unread,
Feb 27, 1998, 3:00:00 AM2/27/98
to
You may easily do it using Ghostscript. Select the proper device
(I did a similar job using the tiff24nc device), and prepend a piece
of postscript code to your file that redefines the image operator
as to set the output file name and getting the image dimensions
out of the dictionary to set the /PageSize value and change the
transformation matrix to the image's internal coordinate system.

If you should need further advice, e-mail me directly.

Helge Blischke

--
H.Bli...@srz-berlin.de
H.Bli...@srz-berlin.com
H.Bli...@acm.org

H. Reinecke

unread,
Mar 2, 1998, 3:00:00 AM3/2/98
to

Helge Blischke <H.Bli...@srz-berlin.de> writes:

In this case it is even easier.
/DCTDecode is the equivalent filter needed for JPEG-Images.
That makes the above image an Ascii85-encoded JPEG-Image. Simply cut
the above data (String following '>>' up to an trailing '~') and store
it in a file with type .jpg. Viola, there is your Image.

HTH.

Hannes
---
The resulting type and value of an instance of use of the new value
notation is determined by the value (and the type of the value) finally
assigned to the distinguished local reference indentified by the
keyword VALUE, according to the processing of the macrodefinition for
the new type notation followed by that for the new value notation.
ISO 8824:1988, Annex A

0 new messages