From owner-freebsd-doc Mon Dec 21 13:28:38 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA27241 for freebsd-doc-outgoing; Mon, 21 Dec 1998 13:28:38 -0800 (PST) (envelope-from owner-freebsd-doc@FreeBSD.ORG) Received: from cergy1-1.isdnet.net (cergy2-2.isdnet.net [194.149.185.129]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA27236 for ; Mon, 21 Dec 1998 13:28:35 -0800 (PST) (envelope-from robert@cergy1-1.isdnet.net) Received: (from robert@localhost) by cergy1-1.isdnet.net (8.8.7/8.8.7) id VAA02348 for freebsd-doc@FreeBSD.ORG; Mon, 21 Dec 1998 21:45:06 +0100 (CET) (envelope-from robert) From: Robert Brive Message-Id: <199812212045.VAA02348@cergy1-1.isdnet.net> Subject: Re: How do I convert PostScript to .gif? In-Reply-To: <19981221174907.F24125@freebie.lemis.com> from Greg Lehey at "Dec 21, 1998 5:49: 7 pm" To: freebsd-doc@FreeBSD.ORG Date: Mon, 21 Dec 1998 21:45:05 +0100 (CET) X-Mailer: ELM [version 2.4ME+ PL43 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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: > ... > 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 Perhaps you could use pgm instead of ppm if you are with gray scale (the tempfile is 3 times smaller), ppmtogif will read also read pgm files. -- Robert Brive To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message