On 4/23/10 4:25 PM, Deri James wrote:

Is there a way to include a jpeg or png image in a groff file?  No
hack too cheap!

If you want to embed a graphic into postscript output you have to convert the
format to EPS (Encapsulated PostScript) and then you can use the .PSPIC macro
to embed the .eps.

Thanks, this is working perfectly for me.

I don't have any need to scale the image, so I'm using PSPIC lines in one
of these forms:

.PSPIC foo.eps
.PSPIC -L foo.eps
.PSPIC -R foo.eps
.PSPIC -I .5i foo.eps

All the images are jpegs, so I've got this simple shell script in
my pipeline to generate the eps files:

cat $* |
awk '/^\.PSPIC/ {sub(/\.eps/,"",$NF); print "convert "$NF".jpg "$NF".eps"}' |
sort -u |
sh -x

I'll check out the PDF solutions as well, but this is working
fine in my current workflow.

Thanks all!
Mark

--
Mark Harrison
Pixar Animation Studios

Reply via email to