Is that possible to be done by PHP with GD library? if not... what can do it? this is kind important... thx
Not sure about GD, but ImageMagick can definitely do it (although I suspect GD might be easier if it can). Just Google ImageMagick. Great tool to manipulate graphics from the command line - or using exec()
Don't forget phpffmpeg-php which makes it easier to create GIF animations. I believe it will do what you ask easily.