2

I am using imagemagick/php to make a jpeg file from a PDF.

Input PDF file: PDF-file

Output Jpeg file:

output jpeg Jpeg-file

The textures on the output file look wrong near the bottom. This is the same result if I make a PNG also. I have tired different floor plans, other textures play up also in a similar way.

PHP code

$im = new Imagick();
$im->setResolution( 300, 300 ); 
$im->readImage( $input_path );
$im->setImageFileName($output_path);
$im->writeImage();

Server Config

PHP Version 5.3.5
ImageMagick 6.4.8

Thank you.

4

1 回答 1

0

看起来 ImageMaigck 错误地处理了 PDF 中嵌入图像的不透明度。我对 ImageMagick 不够熟悉,无法为您提供解决方案,但在他们的文档中对此进行了讨论——也许您可以更改一个选项来改进。

于 2011-06-10T00:53:01.317 回答