Hi!
I’m new to Magick.net and I need to convert a pdf to png.
I am having an issue when I try to run the application in a 64bit server. The project is done with Visual Studio 2010, I have referenced Magick.NET-AnyCPU and at project‘s properties I have “Any CPU (platform)” and the code is:
And I also have tried to change de library to Magick.NET-x64, but I obtain the same result.
Thanks in advance.
I’m new to Magick.net and I need to convert a pdf to png.
I am having an issue when I try to run the application in a 64bit server. The project is done with Visual Studio 2010, I have referenced Magick.NET-AnyCPU and at project‘s properties I have “Any CPU (platform)” and the code is:
'Lo transformamos a imagen
Dim settings As New MagickReadSettings()
settings.Density = New MagickGeometry(300, 300)
Using images As New MagickImageCollection()
images.Read("C:\tmp\prueba.pdf”, settings)
Dim horizontal As MagickImage = images.AppendHorizontally()
horizontal.Write("C:\tmp\prueba.png”)
End Using
But, I have the following exception: System.TypeInitializationException: Se produjo una excepción en el inicializador de tipo de 'ImageMagick.Types'. ---> System.TypeInitializationException: Se produjo una excepción en el inicializador de tipo de 'ImageMagick.AssemblyHelper'. ---> System.IO.FileNotFoundException: No se puede cargar el archivo o ensamblado 'Magick.NET-Q16-x86.dll' ni una de sus dependencias. No se puede encontrar el módulo especificado.
en System.Reflection.RuntimeAssembly.nLoadFile(String path, Evidence evidence)
en System.Reflection.Assembly.LoadFile(String path)
en ImageMagick.AssemblyHelper.LoadAssembly()
en ImageMagick.AssemblyHelper..cctor()
--- Fin del seguimiento de la pila de la excepción interna ---
en ImageMagick.AssemblyHelper.GetType(String name)
en ImageMagick.Types..cctor()
--- Fin del seguimiento de la pila de la excepción interna ---
en ImageMagick.MagickReadSettings..ctor()
I have installed Ghostscript 9.14 for 64bits, Microsoft Visual C++ 2010 SP1 Redistributable Package (x64) and Visual C++ Redistributable para Visual Studio 2012 (x64).And I also have tried to change de library to Magick.NET-x64, but I obtain the same result.
Thanks in advance.