By Adrian Mummey in featured articles, php, programmingNov 5th, 2008 | 6 Comments
During development of my cSprites application I ran across an interesting problem when generating my sprites with GD. When dealling with transparent GIFs, GD does not take care of processing by default you must enable some specific settings to get it done correctly. The default behavior is that imagecreatefromgif adds a black background to the transparent gif. The way I solved this was a lot of trial, error and research.
Here is the original Image I used. Initially I thought I could just use the basic image copy functions in GD and it would take care of the rest. Well this isn’t the case....