[Magick-bugs] -page A4 gives wrong BoundingBox for PostScript

Harald Koenig koenig at science-computing.de
Wed Sep 29 02:08:42 PDT 2004


quick update:

I've tested ImageMagick-6.1.0-1, and it still shows the same bug
with image position in PS output when converting from jpeg to PS:

	turtle ImageMagick-6.1.0-1 > convert  rose.jpg ps:/tmp/PS
	turtle ImageMagick-6.1.0-1 > grep BoundingBox /tmp/PS
	%%BoundingBox: 0 0 2240 3303
	%%HiResBoundingBox: 0 0 2240 3303
	%%PageBoundingBox: 0 0 2240 3303

	turtle ImageMagick-6.1.0-1 > convert  -page A4 rose.jpg ps:/tmp/PS
	turtle ImageMagick-6.1.0-1 > grep BoundingBox /tmp/PS
	%%BoundingBox: 0 -2460 571 -1618
	%%HiResBoundingBox: 0 -2461 571 -1619
	%%PageBoundingBox: 0 -2461 571 -1619

	turtle ImageMagick-6.1.0-1 > convert  -page A4+0+0 rose.jpg ps:/tmp/PS
	turtle ImageMagick-6.1.0-1 > grep BoundingBox /tmp/PS
	%%BoundingBox: 0 -2460 571 -1618
	%%HiResBoundingBox: 0 -2461 571 -1619
	%%PageBoundingBox: 0 -2461 571 -1619
 

On Sep 21, Harald Koenig wrote:

> Hi,
> 
> On Sep 15, yarrow at studio.imagemagick.org wrote:
> 
> > > the resulting BoundingBox and printed image lays completely off the page
> > 
> > You found a genuine bug.  Will have a fix in ImageMagick 6.0.8-2 Beta by
> > tommorrow.  Thanks for the problem report.
> 
> first thanks for your quick answer!
> 
> yesterday I've picked/compiled both ImageMagick-6.0.8-3 (stable) 
> and ImageMagick-6.0.8-4 (beta) and both versions still show the
> same problem:
> 
> 	turtle ImageMagick-6.0.8-4 > convert rose.jpg -page A4 ps:/tmp/PS
> 	turtle ImageMagick-6.0.8-4 > grep BoundingBox /tmp/PS
> 	%%BoundingBox: 0 -2563 579 -1721
> 	%%HiResBoundingBox: 0 -2564 579 -1722
> 	%%PageBoundingBox: 0 -2564 579 -1722
> 
> tools which honor the %%BoundingBox (like "gv") still show the page, 
> but plain "gs" (ghostscript) or laser printers only show a blank page...
> 
> 
> did I fetch the wrong sources ?
> 
> shall I test any other patch for you ?
> 
> 
> thanks,
> 
> Harald Koenig
> -- 
> "I hope to die                                      ___       _____
> before I *have* to use Microsoft Word.",           0--,|    /OOOOOOO\
> Donald E. Knuth, 02-Oct-2001 in Tuebingen.        <_/  /  /OOOOOOOOOOO\
>                                                     \  \/OOOOOOOOOOOOOOO\
>                                                       \ OOOOOOOOOOOOOOOOO|//
> Harald Koenig                                          \/\/\/\/\/\/\/\/\/
> science+computing ag                                    //  /     \\  \
> koenig at science-computing.de                            ^^^^^       ^^^^^


Harald Koenig
-- 
"I hope to die                                      ___       _____
before I *have* to use Microsoft Word.",           0--,|    /OOOOOOO\
Donald E. Knuth, 02-Oct-2001 in Tuebingen.        <_/  /  /OOOOOOOOOOO\
                                                    \  \/OOOOOOOOOOOOOOO\
                                                      \ OOOOOOOOOOOOOOOOO|//
Harald Koenig                                          \/\/\/\/\/\/\/\/\/
science+computing ag                                    //  /     \\  \
koenig at science-computing.de                            ^^^^^       ^^^^^


More information about the Magick-bugs mailing list