apply image magic aliases properties to <img> tg

Author Message

Romeo Antony

Monday 13 September 2010 3:07:09 pm

In ezpublish for nodes , we can apply changes to style and size of images using image magic

like{attribute_view_gui attribute=$node.data_map.image image_class=$image_class}

But can we apply image magic directly to img taglike this

<img src={"mage1"|ezimage }

How do appy image magic to img tag not for attribute_view_gui or node_view_gui

Anyidea wll be a help.

Romeo

Gabriel Finkelstein

Monday 13 September 2010 3:48:43 pm

Ignore this message

Matthieu Sévère

Monday 13 September 2010 11:53:58 pm

Hey Romeo,

Image magick will be used only for image that are stored into an ezimage datatype

--
eZ certified developer: http://ez.no/certification/verify/346216

Romeo Antony

Tuesday 14 September 2010 1:10:24 am

Thanks for the reply Matthieu. So If i am correct , mag resize for IMG tag is only possible only by some CSS and javasript techniques. No other way?

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

Main resources:

Total runtime0.8162 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.0053 589.2891152.6406
Module start 'layout' 0.00530.0022 741.929739.4766
Module start 'content' 0.00760.8074 781.4063591.8203
Module end 'content' 0.81490.0012 1,373.226612.1250
Script end 0.8161  1,385.3516 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.3942160.0002
Check MTime0.00130.1634160.0001
Mysql Total
Database connection0.00080.092910.0008
Mysqli_queries0.762993.4794620.0123
Looping result0.00050.0593600.0000
Template Total0.789596.720.3947
Template load0.00220.265420.0011
Template processing0.787396.461820.3936
Template load and register function0.00010.011810.0001
states
state_id_array0.00100.124610.0010
state_identifier_array0.00110.138420.0006
Override
Cache load0.00170.2043230.0001
Sytem overhead
Fetch class attribute can translate value0.00050.060030.0002
Fetch class attribute name0.00180.216970.0003
XML
Image XML parsing0.00270.336730.0009
class_abstraction
Instantiating content class attribute0.00000.001780.0000
General
dbfile0.00310.3826280.0001
String conversion0.00000.000540.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/strong.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/strong.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 18
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs