wrong image size

Author Message

Marko Žmak

Saturday 26 March 2005 5:52:01 pm

I have created an object of class image, and uploaded the image. When I display the image in my user site, the image is smaller than it should be. I've checked, and the dimensions of the displayed image doesn't corespond to the dimensions od the image I uploaded. I use this code to display the image:

{attribute_view_gui attribute=$main_banner_nodes[0].object.data_map.image}

Why does this happen, and how can I resolve it?

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

Hubert Farnsworth

Marko Žmak

Saturday 26 March 2005 5:57:52 pm

I solved this. It was necessary to add image_class=original to the code.

But wouldn't be more natural to use the original size as default instead of large?

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

Hubert Farnsworth

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

Main resources:

Total runtime0.8622 sec
Peak memory usage4,096.0000 KB
Database Queries52

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0072 588.9453152.6094
Module start 'layout' 0.00720.0028 741.554739.4141
Module start 'content' 0.01000.8503 780.9688492.1484
Module end 'content' 0.86030.0019 1,273.11728.1875
Script end 0.8622  1,281.3047 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.3942160.0002
Check MTime0.00140.1612160.0001
Mysql Total
Database connection0.00120.139310.0012
Mysqli_queries0.807493.6402520.0155
Looping result0.00050.0611500.0000
Template Total0.823495.520.4117
Template load0.00260.296720.0013
Template processing0.820895.195920.4104
Template load and register function0.00010.011610.0001
states
state_id_array0.00120.134910.0012
state_identifier_array0.00190.219120.0009
Override
Cache load0.00180.2041110.0002
Sytem overhead
Fetch class attribute can translate value0.00060.075010.0006
Fetch class attribute name0.00200.228730.0007
XML
Image XML parsing0.00060.064210.0006
class_abstraction
Instantiating content class attribute0.00000.001440.0000
General
dbfile0.00240.2823180.0001
String conversion0.00000.001140.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
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 10
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs