Page 1 of 1

how to convert BMP to Multi Tiff?

Posted: 2016-03-10T13:03:53-07:00
by worship668
Dear Engineer:

I have a question how to convert some BMP file to One Multipage TIFF with LZW compression? I search as far as I can, and the following code are what I did, but didn't work, Please help:

using (ImageMagick.MagickImageCollection images = new ImageMagick.MagickImageCollection())
{
List<string> strImageList = CommonMethod.GetImageArray(@"C:\temp\");
for (int i = 0; i < strImageList.Count; i++)
{
ImageMagick.MagickImage myMagickImage = new ImageMagick.MagickImage(strImageList);
myMagickImage.SetDefine(ImageMagick.MagickFormat.Tiff, "compress", "LZW");
images.Add(myMagickImage);
}

string strFilePathName = @"C:\temp\image.tiff";
images.Write(strFilePathName);
return true;
}

Do I have to use command Line? if so, I just download ImageMagick-6.9.3-7-Q16-x64-dll.exe from website and install it on my PC, and run command line is working. I got a question is that do I have to install the mageMagick-6.9.3-7-Q16-x64-dll.exe on the customer's PC or can I package some file into my software installer so I can run command Line in my code?

Re: how to convert BMP to Multi Tiff?

Posted: 2016-03-10T13:08:16-07:00
by fmw42
Please do not post the same question to multiple forums.

If your code is not for the Magick.Net API, then this post is in the wrong forum.