Resize images, increase size and not constrain proportions

Author Message

Tore Skobba

Friday 31 October 2003 8:09:47 am

Hi all

I am trying to resize images so that they fit in an table cell in my current design. The cell has width=230, height=110, in order to do this I have added the following to "image.ini.append.php":

# Define customized image size
[ImageSizes]
Height[ingress]=110
Width[ingress]=230

However, this does not work very well.. Images tend to only be enlarged to the nearest size, i.e an image measuring 90*90 is not adjusted at all. While an image of 300*300 is shrinked, but not to 110*230, but 110*110. How do you if possible turn of the constraning of proportions and allow images to be enlarged?

Cheers
Tore

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

Main resources:

Total runtime0.5479 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0068 588.1719152.6563
Module start 'layout' 0.00680.0035 740.828139.5078
Module start 'content' 0.01030.5359 780.3359401.7188
Module end 'content' 0.54620.0016 1,182.05478.0938
Script end 0.5478  1,190.1484 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.5983160.0002
Check MTime0.00140.2508160.0001
Mysql Total
Database connection0.00100.190910.0010
Mysqli_queries0.508692.8316460.0111
Looping result0.00050.0866440.0000
Template Total0.515494.120.2577
Template load0.00190.347920.0010
Template processing0.513593.717920.2567
Template load and register function0.00020.030310.0002
states
state_id_array0.00170.312810.0017
state_identifier_array0.00080.140020.0004
Override
Cache load0.00150.2793120.0001
Sytem overhead
Fetch class attribute can translate value0.00090.167210.0009
Fetch class attribute name0.00090.157010.0009
XML
Image XML parsing0.00010.026910.0001
class_abstraction
Instantiating content class attribute0.00000.001310.0000
General
dbfile0.00060.1186100.0001
String conversion0.00000.001940.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
1content/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
2content/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: 8
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs