0
Not a bug

Unable to see picture ARW format and create thumbnails with this format

randdrick 8 months ago updated by pabloluih 6 months ago 7

Hi,
I activate ImageMagick  to make thumbnails from ARW picture format, but it's don't work. 
Filerun try to create thumbnail but file made have a "lock" extension and size is null.


I create a default pluggins for RAW image files types but It's impossible to see  and/or edit picture ARW format


Under review

Most probably your server is missing "dcraw", which is a third party application needed for these types of files.

Adding the default option is not necessary.

FYI: when having troubles with thumbnails in FileRun, there is the plugin "Admin: Thumbnail troubleshooter" which can be enabled, and use on image files for information on what goes on behind the scenes.

Although I have ImageMagick installed, which comes with the binary of "dcraw", I have the same problem:

Results:
* returned code: 1
* returned text: Array ( ) Resize failed.
Displaying image.png icon instead.

I have added the following line to "coder.xml" file of ImageMagick, but with no luck:

<!-- <coder magick="ARW" name="DNG"/> -->

I have found the following file "delegates.xml", in which there is the following line:

<delegate decode="dng:decode" stealth="True" command="dcraw.exe -6 -W -O "%u.ppm" "%i""></delegate>

I don't know if it would be possible to modify that file to achieve what we are expecting. I have searched about ImageMagick and those files, but I have no idea how to make it...

Thanks in advance!

You can try to convert one of your files to PNG, directly from the command line, using ImageMagick. If that doesn't work, then kindly post on ImageMagick support forum, given it's not exactly a FileRun issue.

Thanks for the response. At first I couldn't convert because I had to add the following environment variable to system: MAGICK_CODER_MODULE_PATH

After that it converts the ARW file successfully. So at the moment I don't know which could be the problem...

What is more, when executing the "thumnail troubleshooter" it throws the error I have posted before. But when I execute the same code in Windows' CMD it creates the PNG perfectly.

C:/"Program Files"/ImageMagick-7.0.8-Q16/magick.exe -size "400x400" "test.ARW" -verbose -auto-orient -thumbnail "400x400>" -strip -quality 95 "test.png"

Which gives the following with a perfectly visible PNG:

test.ARW=>test.png ARW 6024x4024=>400x267 8-bit sRGB 23.8438MiB 0.813u 0:00.637


Thanks in advance.

Perhaps the path was added only to "User" variables, in Windows, and not "System" variables. In which case, it would work for you, but might not work if processes are ran by other system accounts.

The path had been added to "System" variables. But now I have seen this line in Apache's error log:

magick.exe: RegistryKeyLookupFailed `CoderModulesPath' @ error/module.c/GetMagickModulePath/665

I will try other things, but I I don't know why is this happening. What I understand is that it doesn't find the correct path for the coders, but all paths are set correctly. If I find the solution I will show you.

I have found the solution:

My installation of ImageMagick was through Chocolatey utility, and because of that I think it didn't create the necessary registry entries at [\HKEY_LOCAL_MACHINE\SOFTWARE\ImageMagick\Current]. Entries are these (with my personal values and version):

Key Name

Key Type

Description

BinPath

REG_SZ

C:\Program Files\ImageMagick-7.0.8-Q16

ConfigurePath

REG_SZ

C:\Program Files\ImageMagick-7.0.8-Q16

LibPath

REG_SZ

C:\Program Files\ImageMagick-7.0.8-Q16

ModulesPath

REG_SZ

C:\Program Files\ImageMagick-7.0.8-Q16

QuantumDepth

REG_DWORD

Version

REG_SZ

CoderModulesPathREG_SZC:\Program Files\ImageMagick-7.0.8-Q16\modules\coders
FilterModulesPathREG_SZC:\Program Files\ImageMagick-7.0.8-Q16\modules\filters

Here is where I have found this information:

link1 | link2

Thanks.