magicknet

How to convert PDF to images using C# and ImageMagick?

两盒软妹~` 提交于 2019-12-04 13:10:11
问题 I would like to convert a PDF file to .GIF using C# and magicknet.dll. I have added the reference to the MagickNet Dll to my project. MagickNet.Magick.Init(); MagickNet.Image img = new MagickNet.Image("d:/aa.pdf"); img.Write("d:/bb.gif"); MagickNet.Magick.Term(); img.Dispose(); System.Runtime.InteropServices.SEHException was unhandled by user code Message="External component has thrown an exception." Source="ImageMagickNET" ErrorCode=-2147467259 StackTrace: at Magick.Image.{ctor}(Image* ,

Could not load file or assembly Magick.Net on Elastic Beanstalk Deployment

旧时模样 提交于 2019-12-03 18:11:12
问题 I am getting the following error when deploying my project to Amazon Elastic Beanstalk: Could not load file or assembly 'Magick.NET-x86.DLL' or one of its dependencies. The specified module could not be found. I have many other DLLs in the bin folder, and this one the only one that throws this error. The DLL doesn't have any dependencies as far as I know. I don't get this error when running locally and the dll is set to "Do not copy" in the advanced options, like the other DLLs. I am running

Could not load file or assembly Magick.Net on Elastic Beanstalk Deployment

这一生的挚爱 提交于 2019-11-29 15:28:00
I am getting the following error when deploying my project to Amazon Elastic Beanstalk: Could not load file or assembly 'Magick.NET-x86.DLL' or one of its dependencies. The specified module could not be found. I have many other DLLs in the bin folder, and this one the only one that throws this error. The DLL doesn't have any dependencies as far as I know. I don't get this error when running locally and the dll is set to "Do not copy" in the advanced options, like the other DLLs. I am running ASP.NET 4.5 / C# Project Running dependency walker on the EC2 server of the Elastic Beanstalk I get: