Hi dlemstra hope you are doing good!
Thanks for your quick asssistance toward my issue. I have installed the vs c++ pack and its working.
A small concern I am using below code to resize .gif file without losing its animation part.
Thanks alot.
Thanks for your quick asssistance toward my issue. I have installed the vs c++ pack and its working.
A small concern I am using below code to resize .gif file without losing its animation part.
byte[] getResizedImage(String path, int width, int height)
{
WebClient wc = new WebClient();
System.IO.Stream stream = wc.OpenRead(path);
System.Drawing.Bitmap imgIn = new System.Drawing.Bitmap(stream);
Image thumb = imgIn.GetThumbnailImage(200, 90, () => false, IntPtr.Zero);
System.IO.MemoryStream outStream = new System.IO.MemoryStream();
using (MagickImageCollection input = new MagickImageCollection(stream))/__/Here when i pass stream object it gives error "Magick: zero-length blob not permitted `' @ error/blob.c/BlobToImage/345"__
using (MagickImageCollection input = new MagickImageCollection(path))//__but when i pass the direct path then it works properly__ . Would you mind explain me about it. If i want to pass the stream how can i do that.
{
using (MagickImageCollection output = new MagickImageCollection())
{
for (int i = 0; i < input.Count; i++)
{
MagickImage image = input[i];
image.Resize(200,90);
output.Add(image);
}
output.Write(outStream);
}
}
return outStream.ToArray();
}
And one more concern how to verify that if Visual C++ Redistributable for Visual Studio already installed on the system. Also after installing the same will it effect on the any other application developed in vs or any thing else. Why I am asking this because I have to install the same on the client server machine and there are many other major applications are running so I am concerned about it. I have a demo with client for this issue in IST 5pm so I have to make it working live on the from the client machine.Thanks alot.