[gs-devel] Papersize/bounding box
Will Thurston
willthurston at yahoo.co.uk
Tue Feb 17 09:34:27 PST 2009
Hi Ray,
It didn't work initially, until I moved to a machine with a newer verion of gs which did allow -dEPSCrop !!
Cheers,
Will.
--- On Tue, 17/2/09, Ray Johnston <Ray.Johnston at Artifex.com> wrote:
> From: Ray Johnston <Ray.Johnston at Artifex.com>
> Subject: Re: [gs-devel] Papersize/bounding box
> To: "thursty" <willthurston at yahoo.co.uk>
> Cc: gs-devel at ghostscript.com
> Date: Tuesday, 17 February, 2009, 3:11 PM
> Hi,
>
> As documented in doc/Use.htm, the -dEPSCrop will use the
> BoundingBox
> of an EPS file to set the output size.
>
> Regards,
> Ray
> ------------------------------------------------------------------------
>
> thursty wrote:
> > I am using ghostscript to convert an eps file to a png
> file, like so:
> >
> > gs -dBATCH -dNOPAUSE -q -sDEVICE=png16m -r200x200
> -sOutputFile=Fig1.png
> > Fig1.eps
> >
> > However, the png created doesn't have a tight
> bounding box like the original
> > eps, it has a lot of white space around the edges
> (similar to how the eps
> > looks if I view it using gv with the paper size set to
> A4 rather than
> > bbox). Is there a way to produce my png without the
> white space?
> >
More information about the gs-devel
mailing list