texttoimage with transparent background

Author Message

Mark Marsiglio

Thursday 25 March 2004 8:39:08 am

I just got GD set up to make my buttons render as images to match a font. It is a really neat function, but I really need the text to be rendered with a transparent background. Is this possible? I tried setting the texttoimage.ini style that I am using to background=transparent just as guess, but that resulted in a white background.

Does anyone know if this is possible, and if so, what the syntax is? If not, are there any workarounds?

Thanks
Mark

http://www.thinkcreative.com
Turning Ideas Into Strategic Solutions

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 22:30:15
Script start
Timing: Jan 18 2025 22:30:15
Module start 'layout'
Timing: Jan 18 2025 22:30:15
Module start 'content'
Timing: Jan 18 2025 22:30:16
Module end 'content'
Timing: Jan 18 2025 22:30:16
Script end

Main resources:

Total runtime0.7730 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0071 589.1484152.6406
Module start 'layout' 0.00710.0030 741.789139.4766
Module start 'content' 0.01010.7612 781.2656464.1875
Module end 'content' 0.77130.0016 1,245.45318.1406
Script end 0.7730  1,253.5938 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.4317160.0002
Check MTime0.00140.1765160.0001
Mysql Total
Database connection0.00090.120710.0009
Mysqli_queries0.731094.5700460.0159
Looping result0.00040.0540440.0000
Template Total0.737195.420.3685
Template load0.00200.258320.0010
Template processing0.735095.090720.3675
Template load and register function0.00010.014310.0001
states
state_id_array0.00120.160910.0012
state_identifier_array0.00180.236020.0009
Override
Cache load0.00160.204380.0002
Sytem overhead
Fetch class attribute can translate value0.00110.141810.0011
Fetch class attribute name0.00050.066920.0003
XML
Image XML parsing0.00050.069910.0005
class_abstraction
Instantiating content class attribute0.00000.000520.0000
General
dbfile0.00080.0997150.0001
String conversion0.00000.001340.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 7
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs