First of all I'm new to ImageMagick. so forgive me for my ignorance...
I've tried to read animated gif to a blob and recover it back to an image.
what I did is as follows:
Code: Select all
Blob blob;
vector<Image> loader,saver;
readImages(&loader,"input.gif");
cout<<loader.size(); //gives 16 (contains 16 frames)
writeImages(loader.begin(),loader.end(),&blob);
cout<<blob.length(); //gives 1086 (file size is 14Kb !!!)
readImages(&saver,blob);
cout<<saver.size(); //gives 1 (only 1 frame!!!)
writeImages(saver.begin(),saver.end(),"output.gif");
//and animation doesn't work (obviously)
so...
What should I do? is it a bug? have I missed something?
Thanks for any response!!!