Hi, I recently found this project and familiar with ImageMagick so I thought I gave this a try. I'm relatively new to C#. I just want to do something really simple, resize all images in a folder and save them in another directory. Would the following code do what I want?
MagickNET.SetTempDirectory(@"C:\Users\Desktop\Workspace\MagickDump");
string imgFolderTXT = txtImgFolder.Text;
//imgFolderTXT = (@"C:\Users\Desktop\ImgFolder");
using (MagickImageCollection collection = new MagickImageCollection(imgFolderTXT))
foreach (MagickImage image in collection)
{
image.Resize(300, 300);
}
I haven't been able to try it as of yet because upon running I get this error code of which I found some similar questions on this discussion but I believe I have all the dependencies setup properly.Additional information: Could not load file or assembly 'Magick.NET-Q8-x64, Version=7.0.0.0, Culture=neutral, PublicKeyToken=2004825badfa91ec' or one of its dependencies. An attempt was made to load a program with an incorrect format.
Any advice is greatly appreciated!