Page 1 of 1

How to change the foreground color of animated GIF image

Posted: Wed Jun 29, 2011 2:00 pm
by rahulephp
From last few days I am struggling to achieve this.

For some reason, we need to change the Foreground (display) color of animated gif images without losing their animation.
I am sure there should be some ways to do thing but i couldn't able to find that.
A website ajaxload[dot]info is doing approximately same thing but I am not sure how they got this using PHP.

Can anyone suggest the similar kind of PHP script to change the color of gif images??

Thanks in advance

Re: How to change the foreground color of animated GIF image

Posted: Wed Jun 29, 2011 2:22 pm
by phazorRise
i don't know how to do this. But i'd love to know ! :D
So i'm subscribing to this post.

Re: How to change the foreground color of animated GIF image

Posted: Wed Jun 29, 2011 3:01 pm
by pickle
I'm not sure you can. When you open a gif using the GD functions, I believe you get access to just the first frame. ImageMagick might let you. Doing a Google search for "php animated gif" turned up some results that I didn't bother following, but looked promising.