phantommagick icon indicating copy to clipboard operation
phantommagick copied to clipboard

Image width/height always 1280 × 720

Open boyke opened this issue 8 years ago • 2 comments

No matter what i try, i always get an image of 1280 × 720. Is there something i'm missing here?

$conv = new \Anam\PhantomMagick\Converter();

$options = ['width' => '48', 'height' => '27'];

$conv->width('48'); $conv->height('48');

$conv->setImageOptions($options);

$conv->width('48')->height('27')->setImageOptions($options)->addPage($request->input('row1') . $request->input('row2') . $request->input('row3'))->toPng($options)->save('temp.png');

boyke avatar Aug 23 '16 13:08 boyke

addPage() only work with Pdf. I have tested the image width and height, its working fine. However, for pdf, the width height does not supported.

anam-hossain avatar Oct 27 '16 01:10 anam-hossain

How can i use some html code to get an image? Not using source() with a certain url.

Lwbcr7 avatar Apr 16 '18 06:04 Lwbcr7