Calling convert from within Matlab

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
eric.breitbach
Posts: 1
Joined: 2015-12-10T07:31:38-07:00
Authentication code: 1151

Calling convert from within Matlab

Post by eric.breitbach »

So I'm not sure if this is a Matlab problem or an IM problem but I'll start with you guys and see how that goes first.

I'm trying to use convert from within matlab (via the dos command) and it gives me this error:

convert.exe: unable to load module `C:\Program Files\ImageMagick-6.9.2-Q16-HDRI\modules\coders\IM_MOD_RL_EXR_.dll': The specified module could not be found.
@ error/module.c/OpenModule/1300.
convert.exe: no decode delegate for this image format `EXR' @ error/constitute.c/ReadImage/501.
convert.exe: no images defined `C:\Users\lociuser\Desktop\pbrt-v2-windows\scenes\lavatube\output\laserSpot2_3\laserSpot2_3.tif' @ error/convert.c/ConvertImageCommand/3241.

The same command (and batch file) works successfully from the cmd prompt but throws that error when I'm using it in MATLAB, is there an easy way to fix that?

Thanks in advance guys, you all rock.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Calling convert from within Matlab

Post by fmw42 »

Looks like your IM compile does not include the OpenEXR delegate library? It should show up as exr in the list of delegates when you type

Code: Select all

convert -version
Is it there?
Post Reply