If anyone needs anymore info I will endeavour to provide it. Hopefully someone else has encountered this problem before. Note that bad_banner.gif has a typewriter style text that changes color at the end and that 3rd line of text destroys both it's own color and the 2nd line of text color. To make this easier, IM also provides a special option ' +map ' which will generate a common color map (of 256 colors) over all the frames, applying. Some animations need transparency, while others (like this one) may still need it later for Compression Optimization. However, I have posted two generated gifs that show the results. Finally I color reduce to 63 colors, to leave space for a transparent color. As you can imagine, the code I am using is too large to post here. I believe the problem is GD trying to handle the anti-aliasing of the text string against the gradient background and getting confused. If I use a smaller font or different font the problem goes away. The result is that either the current text string loses its' color or another text string on the same layer (generally a different color from the current text string) goes black. We can recreate this by using a gif with a 128 color gradient and then apply a different colored text string with a drop shadow or outline onto it. Additionally you may receive a gifsicle: warning: too many colors. The problem I have encountered is when I use certain fonts on certain backgrounds. For many years, the top GIF manipulation library has always been Gifsicle, so I. Note that the single image frame are wrong before they are sent to gifsicle. Finally I use gifsicle to combine the frames and then do a final cleanup. This tool layers text lines onto a 64 or 128 color gif background and then I store each frame seperately. We are just finishing a new tool that allows a person to create an animated gif (using gifsicle to actually do the animation portion. I am using GD/PHP extensively in a new website.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |