Are there standard routines for images in common formats (e.g., any of
PNG, GIF, JPG)? Rephrased, is there a standard snippet of PostScript
that my code can use to render a local file (e.g., example.png or
example.gif or example.jpg) onto the current page?
The image itself will probably start as JPG, but can be
GraphicConverter'd into any standard format. Further I understand that
the code might need to know a few things, such as the image size, but
I'm happy to add that 'manually'.
Thank you.
A simple Google search returned this
http://www.usq.edu.au/users/leis/notes/latex/postscript.html
Look for jpeg2ps. I have not used it so I can't say if it's good or not.
Jeff Coffield
http://www.digitalsynergyinc.com
Thank you, but I was hoping—perhaps in vain—for PS code to do it,
rather than a "command-line utility".
Maybe, less elegantly, I should just GraphicConverter to EPS and run
that.
jdaw1 wrote:
>> Look for jpeg2ps. I have not used it so I can't say if it's good or not.
>
> Thank you, but I was hoping�perhaps in vain�for PS code to do it,
> rather than a "command-line utility".
>
> Maybe, less elegantly, I should just GraphicConverter to EPS and run
> that.
I have seen some code that I can't locate now that allowed putting a
jpeg directly inside a PostScript file but at the time I tried it, it
caused several other problems in both the queuing of the file to a
printer and in the rip time on the printer itself. I now process all
jpeg images into eps files to start with (my web server upload code does
it) and then either include the eps into the file or use the PostScript
"run" command.
Jeff
I came across this thread only today. If you still need a solution to your
problem, I have a set of PostScript procedures for directly processing a
several image formats (TIFF, GIF, JPEG, EPS). Drop me an e-mail if you are
interested (h dot blischke at acm dot org).
Helge