IM does not use media box by default

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
sven
Posts: 27
Joined: 2003-10-02T02:21:38-07:00

IM does not use media box by default

Post by sven »

Hi magick,

I've read that IM is supposed to use the media box by default when converting a PDF document to something else, e.g.

Code: Select all

convert image.pdf image.jpg
Unfortunately, I have a PDF document where this behaviour is not true using ImageMagick 6.2.7-1.

The media box, the crop box and the art box (= bounding box) are of the same size. This is the size I'd like to have after the conversion.
The bleed box and the trim box are of the same size as well, but bigger.

When converting a PDF document as described, the size of the bleed box resp. trim box is taken into account, i.e. the image is too big.

The option -define pdf:use-cropbox=true leads to the same result.

Sorry, but I cannot provide a suitable PDF document at the moment.

I hope that you can help...

Thanks a lot in advance and best regards
Sven
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Post by magick »

We'll investigate as soon as you provide a URL to a PDF that illustrates the problem. The PDF files we use for testing produce correct results (trimmed to MediaBox or CropBox).
sven
Posts: 27
Joined: 2003-10-02T02:21:38-07:00

Post by sven »

I've constructed an example.

Here you can find the input PDF (see description in the original posting).

The output PDF (convert input.pdf output.pdf) document can be found here.

Best regards
Sven
sven
Posts: 27
Joined: 2003-10-02T02:21:38-07:00

Post by sven »

Do you have an idea what might be wrong?

Best regards
Sven
Post Reply