ghostscript's bbox driver gives wrong result
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
GS-GPL |
Invalid
|
Medium
|
|||
ghostscript (Ubuntu) |
Fix Released
|
Medium
|
Till Kamppeter | ||
Bug Description
Ghostscript in Gutsy (and Hardy) gives wrong results for the Bounding Box for most EPS files I've tried. It used to work fine with gs-gpl in Feisty. One simple example of the failure is the following (using the example.ps file attached):
gs -sDEVICE=bbox -dNOPAUSE -dBATCH example.ps
the result is wrong.
Reverting back to a previous version is hard, since the package changed its name in Gutsy.
Example.ps file's content:
-------
%!PS-Adobe-2.0
%%Title: example.ps
%%Date: Sat Nov 3 20:58:13 WET 2007
%%BoundingBox: 52 97 267 163
%%Page: 1 1
0.8 0 0 setrgbcolor 1 setlinewidth
100 15 160 {100 exch moveto 120 0 rlineto stroke} for
0 setgray 0.3 setlinewidth newpath
140 130 3 0 360 arc gsave 0.7 0.6 0 setrgbcolor fill grestore stroke
/Times-Italic findfont 12 scalefont setfont
136 138 moveto (q) show
55 127 moveto (V ) show currentpoint
225 127 moveto (V ) show
/Times-Roman findfont 12 scalefont setfont
(menor) show moveto (maior) show
showpage
Related branches
Changed in gs-gpl: | |
status: | Unknown → Confirmed |
Changed in gs-gpl: | |
status: | Confirmed → Invalid |
Changed in ghostscript: | |
status: | Fix Released → New |
Changed in gs-gpl: | |
importance: | Unknown → Medium |
Here is another PostScript file that shows better the bug. The command "gs -sDEVICE=bbox -dNOPAUSE -dBATCH example2.ps" gives an empty bounding box, which is wrong:
GPL Ghostscript SVN PRE-RELEASE 8.61 (2007-08-02)
Copyright (C) 2007 Artifex Software, Inc. All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
%%BoundingBox: 0 0 0 0
%%HiResBoundingBox: 0.000000 0.000000 0.000000 0.000000
The gs-gpl package in Edgy used to give the correct result.
(file example2.ps attached)