Herbrand
> How can I get an image out of a large postscript file?
Basically, you can't, at least not unless you are a skilled PostScript
programmer with plenty of time to spare.
Your best bet is probably to render the file to a composite TIFF(using
GHostScript) , open it with PhotoShop (or similar) and crop out the piece
you want.
Ken
Uggh. That would really depend on the image.
Personally, I'd use a lossless memory-pig format like pnm.
For a structured drawing, I'd convert to a gif/png first.
For a photo like image, I'd convert to jpeg first.
But really, I'd bring it up in ghostscript, and use the save
current page as a postscript file, and then hack the single
page of postscript.
If the file is a pdf file, xpdf offers image extraction through
its commandline tool pdfimages, which extracts pnms and jpegs
from the pdf.
--
Dave Blake
dbl...@phy.ucsf.edu
If it is an EPS file that is embedded in the
PostScript print file then this could be
pretty straightforward. Unless the .eps
contains binary data you could use any
word processor, or better, a good text
editor. Of course, you will need to
save as text...if you use a word
processor.
You'll need to determine where
the .eps starts/finishes in the .ps print
file. It can be a little tricky to find
the end of the eps code. The start
of the eps code is (usually) indicated
by lines of the form:
!PS-Adobe-x.y EPSF-a.b
where x,y, a and b are integers.
Eg
!PS-Adobe-3.0 EPSF-3.0
As I said, finding the end of the
eps code can be a little awkward
unless you are familiar with the .ps
code of the generating application.
Regards
Graham
!PS-Adobe-x.y EPSF-a.b
should, of course, be
%!PS-Adobe-x.y EPSF-a.b
(forgot the '%')
Cheers
Graham
Bas Kroes wrote:
> How can I get an image out of a large postscript file?
Create a PDF file using Acrobat Distiller. Set the
Distiller options to no color management and no
compression. Once the PDF file is created, extract
the page of interest and then it can
be opened with Photoshop. You may need to know
the original DPI of the image and then set that
when asked for the resolution. Since the entire
8.5x11 or A4 page is rasterized, you will then need
to crop the area of interest.
-doug
> How can I get an image out of a large postscript file?
>
> Herbrand
By using ghostscript/pstoedit to render it into a vector-graphic format
from which other tools can extract the raster data.
Scott Johnston
www.ivtools.org