Re: [Groff] Using pic/groff/gs to produce gif/jpeg

2006-10-22 Thread Werner LEMBERG
> > Hi, I'm new to pic/groff and I've been having some problems > > producing either gif or jpeg images using them. Try pic2graph. Werner ___ Groff mailing list Groff@gnu.org http://lists.gnu.org/mailman/listinfo/groff

Re: [Groff] Using pic/groff/gs to produce gif/jpeg

2006-10-21 Thread Larry Kollar
David Griffiths wrote: Hi, I'm new to pic/groff and I've been having some problems producing either gif or jpeg images using them. Anyway I started out following some instructions here: http:// www.spinellis.gr/sw/umlgraph/doc/faq.html#antialias but the resulting command was very slo

Re: [Groff] Using pic/groff/gs to produce gif/jpeg

2005-05-14 Thread Werner LEMBERG
> By the way, another weird little quirk which doesn't seem to be > mentioned in my admittedly brief read of the documentation: if your > diagram goes beyond the default width as understood by pic then it > starts scaling the image automatically! It's really baffling when it > first happens - you m

Re: [Groff] Using pic/groff/gs to produce gif/jpeg

2005-05-14 Thread Werner LEMBERG
> Hi, create a file foo.pic containing just one line: > > box "hello world" > > process like this: > > pic2graph -format jpg -density 90 < foo.pic > foo.jpg > > if you put foo.jpg into a web page you can see that there is a load > of blank space below the box. > > This was using groff version

Re: [Groff] Using pic/groff/gs to produce gif/jpeg

2005-05-13 Thread David Griffiths
Hi, create a file foo.pic containing just one line: box "hello world" process like this: pic2graph -format jpg -density 90 < foo.pic > foo.jpg if you put foo.jpg into a web page you can see that there is a load of blank space below the box. This was using groff version 1.19.1 and convert version

Re: [Groff] Using pic/groff/gs to produce gif/jpeg

2005-05-13 Thread David Griffiths
By the way, another weird little quirk which doesn't seem to be mentioned in my admittedly brief read of the documentation: if your diagram goes beyond the default width as understood by pic then it starts scaling the image automatically! It's really baffling when it first happens - you make yo

Re: [Groff] Using pic/groff/gs to produce gif/jpeg

2005-05-12 Thread Werner LEMBERG
> Hmmm, what I didn't notice was that this time the _bottom_ of the > image wasn't getting cropped! This seems to be a bug. Please send me an example file together with the exact command line. Werner ___ Groff mailing list Groff@gnu.org http://

Re: [Groff] Using pic/groff/gs to produce gif/jpeg

2005-05-12 Thread Ralph Corderoy
Hi Dave, > Ah, using pnmraw instead of pnm makes everything 2-3 times faster! Yes, the textual netpbm formats are handy but processing of large images is quicker if the binary file format is used most of the time. > That brings the pnm approach down to only twice the time of my final > direct t

Re: [Groff] Using pic/groff/gs to produce gif/jpeg

2005-05-12 Thread David Griffiths
Hmmm, what I didn't notice was that this time the _bottom_ of the image wasn't getting cropped! So I gave up on pic2graph and just used this: groff -p -P-pletter file.pic | convert -trim -density 90 - file.jpg Cheers, Dave David Griffiths wrote: Hi, yes, that seems to work well (once I'd download

Re: [Groff] Using pic/groff/gs to produce gif/jpeg

2005-05-12 Thread David Griffiths
Hi, yes, that seems to work well (once I'd downloaded the groff-1.19.1 version of pic2graph, the one that comes with cygwin is buggy). Just one thing: it (ie convert) antialiases everything including the solid lines. If I turn off antialiasing it turns it off for the text too. Any suggestions?

Re: [Groff] Using pic/groff/gs to produce gif/jpeg

2005-05-11 Thread Werner LEMBERG
> Hi, I'm new to pic/groff and I've been having some problems > producing either gif or jpeg images using them. The basic problem > seems to be that pic/groff/postscript all have the concept of a page > that they are drawing on whereas I want the resulting image to have > all the whitespace croppe

RE: [Groff] Using pic/groff/gs to produce gif/jpeg

2005-05-11 Thread Ted Harding
On 11-May-05 David Griffiths wrote: > Hi, I'm new to pic/groff and I've been having some problems > producing either gif or jpeg images using them. The basic > problem seems to be that pic/groff/postscript all have the > concept of a page that they are drawing on whereas I want the > resulting imag

Re: [Groff] Using pic/groff/gs to produce gif/jpeg

2005-05-11 Thread joerg van den hoff
David Griffiths wrote: Hi, I'm new to pic/groff and I've been having some problems producing either gif or jpeg images using them. The basic problem seems to be that pic/groff/postscript all have the concept of a page that they are drawing on whereas I want the resulting image to have all the wh

Re: [Groff] Using pic/groff/gs to produce gif/jpeg

2005-05-11 Thread David Griffiths
Ah, using pnmraw instead of pnm makes everything 2-3 times faster! That brings the pnm approach down to only twice the time of my final direct to jpeg approach which I guess I can live with. I know it's nice and flexi but it still seems overkill passing round these raw bitmaps from command to co

Re: [Groff] Using pic/groff/gs to produce gif/jpeg

2005-05-11 Thread Ralph Corderoy
Hi Larry, > I've never found a good way to script this. The process I use is to > open the postscript file with gimp, crop and save. It would be very > pleasant to have a way to quickly generate high quality cropped images > from groff. If anyone knows how to do that I'd like to know too. For

Re: [Groff] Using pic/groff/gs to produce gif/jpeg

2005-05-11 Thread Larry McVoy
I've never found a good way to script this. The process I use is to open the postscript file with gimp, crop and save. It would be very pleasant to have a way to quickly generate high quality cropped images from groff. If anyone knows how to do that I'd like to know too. On Wed, May 11, 2005