Imagick无法打开DNG图像 [英] Imagick is unable to open DNG images

查看:80
本文介绍了Imagick无法打开DNG图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如您所见,图像_IGP4559.DNG存在,但Imagick无法打开它. JPEG图像效果很好.
readImage()返回相同的错误.

As you can see, the image _IGP4559.DNG exists but Imagick can't open it. JPEG images works just fine.
readImage() returns the same error.

以下是图片: http://files.patrikelfstrom.se/_IGP4559.DNG

我在终端中运行此命令以排除所有其他变量.

I run this in the terminal to rule out all other variables.

$ ll /var/www/_IGP4559.DNG
-rw-rw-rw- 1 monsun monsun 11841201 May 17 03:37 /var/www/_IGP4559.DNG
$ php -a
Interactive mode enabled

php > new Imagick('/var/www/_IGP4559.DNG');
PHP Warning:  Uncaught exception 'ImagickException' with message 'unable to open image `/tmp/magick-29917oe6CM9MIkN8A.ppm': No such file or directory @ error/blob.c/OpenBlob/2709' in php shell code:1
Stack trace:
#0 php shell code(1): Imagick->__construct('/var/www/_IGP45...')
#1 {main}
  thrown in php shell code on line 1

推荐答案

ImageMagick使用其他程序读取某些图像格式,包括DNG.

ImageMagick uses other programs to read some image formats, including DNG.

可能发生的是ImageMagick期望能够用来读取DNG的程序在您的系统上不存在或无法正常工作.

What is likely happening is that the program that ImageMagick expects to be able to use to read the DNG either isn't present on your system or isn't working correctly.

列出了其他程序的文件称为 delegates.xml

The file that lists these other programs is called delegates.xml

在我的系统上,用于DNG解码的条目是:

On my system the entry for DNG decoding is:

<delegate decode="dng:decode" command="&quot;ufraw-batch&quot; --silent --create-id=also --out-type=png --out-depth=16 &quot;--output=%u.png&quot; &quot;%i&quot;"/>

即它正在尝试使用程序ufraw-batch进行解码,就像您看到它失败一样,因为该程序无法在我的系统上使用.

i.e. it's trying to use the program 'ufraw-batch' to do the decoding, and like you're seeing it fails, as that program isn't usable on my system.

要解决此问题,您需要安装ufraw或安装类似的软件包,该软件包可以将文件从DNG格式转换为ImageMagick可以直接读取的标准格式.

To solve this, you either need to install ufraw, or install a similar package that can convert files from the DNG format to a standard one that ImageMagick can read directly.

这篇关于Imagick无法打开DNG图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆