【发布时间】:2017-01-22 23:04:56
【问题描述】:
我已经成功安装了 Imagick dll。我遵循了 stackoverflow 示例
How do I convert a PDF document to a preview image in PHP?
以下是我的代码
<?php
$im = new imagick('file.pdf[0]');
$im->setImageFormat('jpg');
header('Content-Type: image/jpeg');
echo $im;
?>
但我现在收到以下错误
Fatal error: Uncaught exception 'ImagickException' with message 'UnableToOpenBlob `demo.pdf': No such file or directory @ error/blob.c/OpenBlob/2657' in D:\xampp\htdocs\learn\index.php:2 Stack trace: #0 D:\xampp\htdocs\learn\index.php(2): Imagick->__construct('demo.pdf[0]') #1 {main} thrown in D:\xampp\htdocs\learn\index.php on line 2
Imagick dll 安装propelry
【问题讨论】:
标签: php codeigniter laravel image-processing