ezimage and texttoimage questions

Author Message

Fraser Hore

Monday 27 February 2006 6:32:04 am

My web designer wants to use a proprietary font, Avenir, so for the time being we're using images for page headings etc. I've created an attribute to upload the page heading image to the content object but when i display the image using the attribute_view_gui, the larger images are scaled down and look bad.

Does anyone know what parameter i need to add to ensure that an image is rendered at the same quality as the original?

Obviousely using images is a pain and i understand that this is precisely what the texttoimage template operator is for. Two questions:

If i buy the Avenir true-type font, what do i have to do to use it for texttoimage?

Will i notice a big performance hit when loading pages? I will be using texttoimage to render the top navigation (5 items) and the page heading.

Thanks!

Fraser

Kåre Køhler Høvik

Sunday 12 March 2006 1:36:15 am

Hi

You should be able to use any .ttf with the texttoimage functionality. The .tff must be placed in the path specified in settings/texttoimage.ini ( or your own override ).

As for performance, images created by the texttoimage operator will be cached automaticly by the system, so it should not cause any problems.

Kåre Høvik

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 01:18:57
Script start
Timing: Jan 19 2025 01:18:57
Module start 'layout'
Timing: Jan 19 2025 01:18:57
Module start 'content'
Timing: Jan 19 2025 01:18:57
Module end 'content'
Timing: Jan 19 2025 01:18:57
Script end

Main resources:

Total runtime0.9109 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0080 590.5938152.6250
Module start 'layout' 0.00800.0044 743.218839.4609
Module start 'content' 0.01240.8970 782.6797525.5938
Module end 'content' 0.90930.0015 1,308.27348.1563
Script end 0.9108  1,316.4297 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00450.4976160.0003
Check MTime0.00130.1469160.0001
Mysql Total
Database connection0.00150.163410.0015
Mysqli_queries0.862894.7270540.0160
Looping result0.00060.0659520.0000
Template Total0.872095.720.4360
Template load0.00270.291020.0013
Template processing0.869395.439520.4347
Template load and register function0.00010.009110.0001
states
state_id_array0.00100.114210.0010
state_identifier_array0.00130.145620.0007
Override
Cache load0.00220.2453160.0001
Sytem overhead
Fetch class attribute can translate value0.00080.085320.0004
Fetch class attribute name0.00100.111540.0003
XML
Image XML parsing0.00080.091420.0004
class_abstraction
Instantiating content class attribute0.00000.000740.0000
General
dbfile0.00090.0934210.0000
String conversion0.00000.000940.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
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/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
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 8
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs