From owner-freebsd-doc Sun Dec 20 23:19:23 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id XAA15907 for freebsd-doc-outgoing; Sun, 20 Dec 1998 23:19:23 -0800 (PST) (envelope-from owner-freebsd-doc@FreeBSD.ORG) Received: from allegro.lemis.com (allegro.lemis.com [192.109.197.134]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id XAA15902 for ; Sun, 20 Dec 1998 23:19:19 -0800 (PST) (envelope-from grog@freebie.lemis.com) Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137]) by allegro.lemis.com (8.9.1/8.9.0) with ESMTP id RAA27232 for ; Mon, 21 Dec 1998 17:49:08 +1030 (CST) Received: (from grog@localhost) by freebie.lemis.com (8.9.1/8.9.0) id RAA49120; Mon, 21 Dec 1998 17:49:08 +1030 (CST) Message-ID: <19981221174907.F24125@freebie.lemis.com> Date: Mon, 21 Dec 1998 17:49:07 +1030 From: Greg Lehey To: FreeBSD Documenters Subject: Re: How do I convert PostScript to .gif? References: <19981220172359.E24125@freebie.lemis.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1i In-Reply-To: <19981220172359.E24125@freebie.lemis.com>; from Greg Lehey on Sun, Dec 20, 1998 at 05:23:59PM +1030 WWW-Home-Page: http://www.lemis.com/~grog Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Sunday, 20 December 1998 at 17:23:59 +1030, Greg Lehey wrote: > Sorry if this is somewhat off-topic; it's not as much so as it seems. > I have some PostScript diagrams that I'd like to use on a web page, > so I need them in .gif (or is there something else? The only other > one I know is .jpeg, which isn't appropriate for line drawings). > > I've tried converting with xv, but the resolution is ridiculous (about > 72 dpi, I'd guess), and ghostscript doesn't seem to be able to output > gif. I'd be grateful for any other suggestions. Thanks for the various answers. It turns out that they didn't help, because all the solutions used Ghostscript for to conversion from PostScript, and Ghostscript will use 72dpi by default. The solution I chose was to find a convenient resolution (in my case, about 200 dpi) and use that to convert to a ppm file. The files are *ridiculously* large, about 50 MB for a relatively small image, and by default Ghostscript uses /tmp as its temporary directory. You can override the directory with the TEMP environment variable, so what I finally wrote was: $ TEMP=. gs -sDEVICE=ppm -r200x200 pic2.ps Greg -- See complete headers for address, home page and phone numbers finger grog@lemis.com for PGP public key To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message