odd-looking graphic with transparent background option
BradM - May 31, 2007 - 23:58
| Project: | Textimage |
| Version: | 5.x-1.2 |
| Component: | Miscellaneous |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
Hey -- just wondering if anyone else has seen this. I've tried a few different fonts but get the same result, so I'm wondering if perhaps the server I'm using is missing a component of some sort?
I've attached a resulting graphic when I choose the option of using a transparent background for the generated image. It looks a little odd. ;)
Brad
| Attachment | Size |
|---|---|
| messed up.gif | 2.07 KB |

#1
I noticed that the titles generated, when transparent background is selected, still show up as JPEGs. Is there some sort of Linux/Unix or whatever module that must be installed in order to generate GIF files?
#2
We've been having the same problem. It appears only with transparent backgrounds (i.e. no background color specified). This happens only on our production server; a local installation of XAMPP displays everything correctly.
I've hacked around in the module file and found the following fix. Haven't tested it extensively, and honestly I don't know the first thing about GD or Freetype, so use at your own risk.
In textimage.module, at line 1053 (that's in the textimage_text_to_image function, just before the call to imagettftext), insert the following:
imagealphablending($img, true);
Hope this will be helpful for someone.