ActiveState Powered by ActiveState

ActiveState Community


PerlNET with Image::Magick

Posted by stevedwyer on 2008-01-11 06:11

Hi,

I am having problems creating a .NET component that uses Image::Magick. The final component will be part of a software package and I do not want the requirement of having ImageMagick installed on the destination computers so ideally I want all the required dlls/modules to be bound to the .NET component.

I have bound several files to the component and I am no longer getting errors resulting in missing DLLs when the module is loaded. (CORE_RL_magick_.dll, CORE_RL_png_.dll, etc). I am now getting Delegate errors when I try to load a file into Image::Magick

$img -> Read("test.ps");

This would require IM_MOD_RL_ps_.dll to allow Image::Magic to read the file which I have also bound and have the file set to autoextract and have verified that it is getting extracted to the temporary directory. I have also checked that Image::Magick searches for the file within the current directory which is also ok as PerlNET should add the temporary directory used for extracting bound files to the PATH.

Does anyone know how to make Image::Magick find these files or possibly an easier way of packaging Image::Magick as a .NET component with PerlNET.

Using ImageMagick-6.3.7-9-Q8 and PerlNET 6.0.2 build 203380 (perl 5.8.3)

Cheers,

Steve

-->