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

CommentFileSizeAuthor
messed up.gif2.07 KBBradM

Comments

BradM’s picture

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?

bobblebrook’s picture

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.

deciphered’s picture

Version: 5.x-1.2 » 5.x-2.x-dev
Status: Active » Postponed (maintainer needs more info)

I have implemented something similar in the recent dev builds.
Marking as fixed, but feel free to to re-open the issue if the latest changes don't resolve your issue.

deciphered’s picture

Status: Postponed (maintainer needs more info) » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

dltampa’s picture

Version: 5.x-2.x-dev » 6.x-2.1
Component: Miscellaneous » Code
Category: support » bug
Status: Closed (fixed) » Active

I have reopened this issue since I am having the same problem on 6.x-2.1. I am unable to create gif images using transparent background.

Please fix. Adding a background color doubles the file size of the image.

mondrake’s picture

Issue summary: View changes
Status: Active » Closed (outdated)