Ted Harding <ted.harding@wlandres.net> wrote a groff macro for embedding EPS images. He also wrote a nice introduction http://www.zen89632.zen.co.uk/Misc/do_spark_howto.pdf
The macro dospark is defined as follows:
.de dospark .psbb \\$1 .nr ht0 \\n[ury]-\\n[lly] .nr wd0 \\n[urx]-\\n[llx] .nr deswd (\\n[.ps]/\\n[ht0])*\\n[wd0] .if \\$2&(\\$2>0) .nr deswd (u; \\$2p) .nr desht \\n[.ps] .if \\$3 .nr desht (u; \\$3p) .nr xht 0 .if (\\n[desht]>\\n[.ps]) .nr xht \\n[desht]-\\n[.ps \X’ps: import \\$1 \ \\n[llx] \\n[lly] \\n[urx] \\n[ury] \ \\n[deswd] \\n[desht]’\ \h’\\n[deswd]u’\x’-\\n[xht]u’ ..
Usage:
.dospark EPSfilename [deswid [desht]]with two optional arguments:
deswid is the desired width of the graphic in points (default) desht is the desired height of the graphic in points (default)