spend too much time on merge gif
Posted: 2015-12-17T09:19:05-07:00
Hi.
sorry, My English is pretty limited, please don't mind
in my case, I need to merge some picture to gif, Each picture about 120kb or more
my code sample:
20 photos in directory, total file size about 3mb
when i start project, it need spend 1min and imagemagick.gif file size 8.xmb
Q1, is it normal?? 1min too long ...
Q2, why file become to bigger? (3mb=>8mb)
Thank you
sorry, My English is pretty limited, please don't mind
in my case, I need to merge some picture to gif, Each picture about 120kb or more
my code sample:
Code: Select all
string[] photos = Directory.GetFiles(path, "*.jpg");
using (MagickImageCollection collection = new MagickImageCollection())
{
int iarray = 0;
foreach (string name in photos)
{
collection.Add(name);
collection[iarray].AnimationDelay = 0;
iarray++;
}
QuantizeSettings settings = new QuantizeSettings();
settings.Colors = 256;
collection.Quantize(settings);
collection.Optimize();
collection.Write("imagemagick.gif");
}
when i start project, it need spend 1min and imagemagick.gif file size 8.xmb
Q1, is it normal?? 1min too long ...
Q2, why file become to bigger? (3mb=>8mb)
Thank you