I've been trying to get to the bottom of this unsuccessfully.
I have checked my delegates.xml file:
Code: Select all
$ grep dng /etc/ImageMagick-7/delegates.xml
<delegate decode="dng:decode" command=""ufraw-batch" --silent --create-id=also --out-type=png --out-depth=16 "--output=%u.png" "%i""/>
I have manually executed the command-line configured in the delegate:
Code: Select all
ufraw-batch --silent --create-id=also --out-type=png --out-depth=16 --output=temp.png raw_test_16.dng
and I can identify the resultant png:
Code: Select all
$ identify temp.png
temp.png PNG 5084x3848 5084x3848+0+0 16-bit sRGB 95.4144MiB 0.000u 0:00.000
So, from what I can see, the dependencies are in place but use through my imagemagick fails.
Code: Select all
identify dng:raw_test_16.dng
identify: unable to open image 'dng:raw_test_16.dng': No such file or directory @ error/blob.c/OpenBlob/3357.
identify: unable to load module '/usr/lib/ImageMagick-7.0.7/modules-Q16HDRI/coders/dng.la': file not found @ error/module.c/OpenModule/1275.
identify: no decode delegate for this image format `DNG' @ error/constitute.c/ReadImage/509.
The debug output shows likes like these:
Code: Select all
2018-02-26T11:04:05+00:00 0:00.010 0.000u 7.0.7 Module identify[8783]: module.c/OpenModule/1261/Module Searching for module "DNG" using filename "dng.la"
2018-02-26T11:04:05+00:00 0:00.010 0.000u 7.0.7 Module identify[8783]: module.c/GetMagickModulePath/546/Module Searching for coder module file "dng.la" ...
2018-02-26T11:04:05+00:00 0:00.010 0.000u 7.0.7 Module identify[8783]: module.c/OpenModule/1270/Module Opening module at path "/usr/lib/ImageMagick-7.0.7/modules-Q16HDRI/coders/dng.la"
2018-02-26T11:04:05+00:00 0:00.020 0.000u 7.0.7 Exception identify[8783]: module.c/OpenModule/1275/Exception unable to load module '/usr/lib/ImageMagick-7.0.7/modules-Q16HDRI/coders/dng.la': file not found
2018-02-26T11:04:05+00:00 0:00.020 0.000u 7.0.7 Module identify[8783]: module.c/OpenModule/1261/Module Searching for module "DNG" using filename "dng.la"
2018-02-26T11:04:05+00:00 0:00.020 0.000u 7.0.7 Module identify[8783]: module.c/GetMagickModulePath/546/Module Searching for coder module file "dng.la" ...
2018-02-26T11:04:05+00:00 0:00.020 0.000u 7.0.7 Module identify[8783]: module.c/OpenModule/1270/Module Opening module at path "/usr/lib/ImageMagick-7.0.7/modules-Q16HDRI/coders/dng.la"
2018-02-26T11:04:05+00:00 0:00.020 0.000u 7.0.7 Exception identify[8783]: module.c/OpenModule/1275/Exception unable to load module '/usr/lib/ImageMagick-7.0.7/modules-Q16HDRI/coders/dng.la': file not found
The file definitely exists:
Code: Select all
$ ls -l /usr/lib/ImageMagick-7.0.7/modules-Q16HDRI/coders/dng.*
-rwxr-xr-x 1 root root 1111 Feb 19 07:54 /usr/lib/ImageMagick-7.0.7/modules-Q16HDRI/coders/dng.la
-rwxr-xr-x 1 root root 15200 Feb 19 07:55 /usr/lib/ImageMagick-7.0.7/modules-Q16HDRI/coders/dng.so
$ file /usr/lib/ImageMagick-7.0.7/modules-Q16HDRI/coders/dng.la
/usr/lib/ImageMagick-7.0.7/modules-Q16HDRI/coders/dng.la: libtool library file, ASCII text
I tested again and see the same results with versions 6 and 7 of ImageMagick.