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

Painting an Image: beginner's questions

1 view
Skip to first unread message

jdaw1

unread,
Sep 16, 2009, 6:15:18 AM9/16/09
to
In a bit more than a decade of occasional PostScript programming, I
have never needed to paint a bitmap image. For the first time, I do.

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.

Jeffrey H. Coffield

unread,
Sep 17, 2009, 8:51:21 AM9/17/09
to

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

jdaw1

unread,
Sep 17, 2009, 5:39:29 PM9/17/09
to
> 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.

Jeffrey H. Coffield

unread,
Sep 18, 2009, 10:28:08 AM9/18/09
to

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

jdaw1

unread,
Sep 21, 2009, 11:10:04 AM9/21/09
to
Of course, the best converter would for GIF, as its transparency could
be used. (Or PNG, but its transparency would have to be subject to a
cutoff dividing fully opaque from fully transparent.)

Helge Blischke

unread,
Jan 10, 2010, 9:29:31 AM1/10/10
to
jdaw1 wrote:

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

0 new messages