groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Groff] embedding pictures or images?


From: Mark Harrison
Subject: Re: [Groff] embedding pictures or images?
Date: Thu, 10 Jun 2010 22:59:39 -0700
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4

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

[Prev in Thread] Current Thread [Next in Thread]