More image sizes (custom)

Author Message

John van der Boom

Tuesday 20 May 2003 2:40:04 am

Hello,

I want to have more then 3 image sizes (small, medium and large). I don't want to change the size of the ones I used now (small, medium and large) but make an new image size.

How can I make a custom size, like gallerysize?
Thank you for you help.

Pawel Frukacz

Thursday 22 May 2003 2:56:45 am

Hello,
You need to add following lines to site.ini to ImageSettings section:
e.g.
TinySizeWidth=50
TinySizeHeight=50

In addition to that add in kernel/classes/datatypes/ezimage/ezimage.php
to attribute function:
case 'tiny': /added
case 'small':
and
if ( $attr == "tiny" ) {$width = $ini->variable( "ImageSettings" , "TinySizeWidth" );
$height = $ini->variable( "ImageSettings" , "TinySizeHeight" );
}

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 10:55:48
Script start
Timing: Jan 18 2025 10:55:48
Module start 'layout'
Timing: Jan 18 2025 10:55:48
Module start 'content'
Timing: Jan 18 2025 10:55:49
Module end 'content'
Timing: Jan 18 2025 10:55:49
Script end

Main resources:

Total runtime0.9476 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.00010.0095 587.9063152.6250
Module start 'layout' 0.00960.0077 740.531339.4453
Module start 'content' 0.01730.9288 779.9766460.0469
Module end 'content' 0.94610.0015 1,240.02348.1641
Script end 0.9476  1,248.1875 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00420.4462160.0003
Check MTime0.00140.1494160.0001
Mysql Total
Database connection0.00160.165710.0016
Mysqli_queries0.898494.8090540.0166
Looping result0.00070.0687520.0000
Template Total0.901995.220.4510
Template load0.00230.243720.0012
Template processing0.899694.928420.4498
Template load and register function0.00020.025910.0002
states
state_id_array0.00060.067110.0006
state_identifier_array0.00130.136220.0006
Override
Cache load0.00170.1816210.0001
Sytem overhead
Fetch class attribute can translate value0.00130.142120.0007
Fetch class attribute name0.00130.136120.0006
XML
Image XML parsing0.00030.030820.0001
class_abstraction
Instantiating content class attribute0.00000.000620.0000
General
dbfile0.00080.0794100.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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/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: 11
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs