How to change the foreground color of animated GIF image

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
rahulephp
Forum Commoner
Posts: 28
Joined: Mon Oct 05, 2009 11:05 am

How to change the foreground color of animated GIF image

Post 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
User avatar
phazorRise
Forum Contributor
Posts: 134
Joined: Mon Dec 27, 2010 7:58 am

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

Post by phazorRise »

i don't know how to do this. But i'd love to know ! :D
So i'm subscribing to this post.
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

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

Post 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.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Post Reply