Page 1 of 1

Coalescing bmps into a gif with Magick++

Posted: 2011-10-09T18:46:55-07:00
by Zamfir
I apologize in advance if this is too simple a question to ask here. I have a simple program in c++ which outputs many bitmap image files and I want to write a for loop which will coalesce them into one gif file. I think I understand that I should be including STL.cpp, and using the coalesceImages algorithm.. but I can't figure out how to write the code.. I've been using http://www.imagemagick.org/Magick++/STL.html for reference

If someone could let me know how to write a for loop which coalesces the bmp files (which have the same dimensions) given an array with their addresses, that would be great.

Thank you!

Zamfir

Re: Coalescing bmps into a gif with Magick++

Posted: 2011-10-09T19:31:31-07:00
by anthony

Code: Select all

convert *.bmp  -layers Optimize file.gif
In the c++ program you will have to link to the MagickCore library, and convert your raw arrays data into BMP images, so that IM can the save it as GIF.