phantommagick
phantommagick copied to clipboard
Image width/height always 1280 × 720
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');
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.
How can i use some html code to get an image? Not using source() with a certain url.