GIF support in PHP is generally horrible. However, I have a solution (which I don't have time to implement but anyone with GD2 experience can):
1. Load the gif using imagecreatefromstring
2. Create a new image via imagecreatetruecolor of the same dimensions
3. Copy the entire gif onto the new image
4. Destroy the original gif
The problem is likely a palette issue.
|