Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ImageMagick.NET Exception

Tags:

c#

imagemagick

I am getting a FileNotFoundException when trying to use ImageMagick.NET, taken from the "bin" folder in the source at.. http://imagemagick.codeplex.com/releases/view/30302

The exact exception I get is...

"Could not load file or assembly 'ImageMagickNET.dll' or one of its dependencies. The specified module could not be found."

The ImageMagickNET.dll is in my output folder, so what other dependencies does it need?

like image 470
coffeesaga Avatar asked Dec 18 '11 22:12

coffeesaga


1 Answers

Add a Reference to the 'ImageMagickNet.dll' found in the 'bin\ReleaseQ8' or 'bin\RealeaseQ16' folders, choose one of them.

After that you have to download the ImageMagick 6.5.3-10 version DLLs for Q8/Q16 because the ImageMagickNet was built to this version. (I found all versions at this link: http://image_magick.veidrodis.com/image_magick/binaries/ For example, for Q16 download: ImageMagick-6.5.3-10-Q16-windows-dll.exe)

Then install it and copy all DLL files from 'C:\Program Files\ImageMagick-6.5.3-Q16' to your bin folder. Now you should be able to run it properly.

like image 141
Fabio Brabec Rodrigues Avatar answered Oct 26 '22 16:10

Fabio Brabec Rodrigues