problem with texttoimage

Author Message

Marko Žmak

Friday 09 September 2005 6:59:34 am

On my site I'm using the textoimage operatto like descibed in the docs:

{image( "It's A Kind Of Magic"|texttoimage( 'arial' ) )}

But it's not working. In IE I get blak rectangles with red text over it but in Firefox I get only black rectangles without text.

Why?

Also, how can I change the output image format to JPEG and set the default text and background color for images rendered in this way?

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Kristof Coomans

Saturday 10 September 2005 4:47:36 am

Don't know why it doesn't work in Firefox, but you can change the output format and some other settings in image.ini.

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Marko Žmak

Wednesday 14 September 2005 2:34:23 pm

Is there any way to change this settings during runtime of eZ?

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Mark Simon

Friday 13 April 2007 7:57:49 am

had the same problem, after reading the documentation at http://ez.no/doc/ez_publish/technical_manual/3_8/reference/template_operators/images/image I come to the result that example 2 can not work.

{image( "It's A Kind Of Magic"|texttoimage( 'arial' ) )}

The texttoimage part works correctly but the image() is wrong placed here.
Image() is being used to combine 2 images, but there is just the result of creating one image from text.

By the way this odd reaction of eZ (Showing a black box, and for IE also the text in red) is an indicator for doing some mistakes from creating text images to show this image

www.all2e.com

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 19 2025 11:45:19
Script start
Timing: Jan 19 2025 11:45:20
Module start 'layout'
Timing: Jan 19 2025 11:45:20
Module start 'content'
Timing: Jan 19 2025 11:45:20
Module end 'content'
Timing: Jan 19 2025 11:45:20
Script end

Main resources:

Total runtime0.6632 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0052 589.1563152.6250
Module start 'layout' 0.00520.0040 741.781339.4453
Module start 'content' 0.00920.6527 781.2266604.0469
Module end 'content' 0.66190.0013 1,385.273412.1641
Script end 0.6632  1,397.4375 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.4899160.0002
Check MTime0.00130.1939160.0001
Mysql Total
Database connection0.00080.118110.0008
Mysqli_queries0.606591.4506620.0098
Looping result0.00050.0794600.0000
Template Total0.625794.320.3128
Template load0.00220.332820.0011
Template processing0.623494.000720.3117
Template load and register function0.00020.023410.0002
states
state_id_array0.00100.149410.0010
state_identifier_array0.00090.140520.0005
Override
Cache load0.00180.2744220.0001
Sytem overhead
Fetch class attribute can translate value0.00040.060330.0001
Fetch class attribute name0.00110.161170.0002
XML
Image XML parsing0.00230.341030.0008
class_abstraction
Instantiating content class attribute0.00000.002080.0000
General
dbfile0.00380.5698300.0001
String conversion0.00000.001540.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
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.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: 19
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs