Automatic image resize

Author Message

Andreas Kaiser

Monday 06 November 2006 2:34:10 pm

When uploading an image 3 resized images are created (small, medium, large + original). It is possible to add another option like thumb?

I have a site where the client doesn't know nothing about image processing (photoshop, etc) and I need that the system resizes the pictures which will be readed by the templates (depending on sections, nodes, etc)

eZ Partner in Madrid (Spain)
Web: http://www.atela.net/

Claudia Kosny

Monday 06 November 2006 2:50:57 pm

Hi Andreas

Yes this is possible without problems. Have a look at the image.ini. This hsows you how to set up an alias for your thumbs.
Then wherever you display an image using attribute_view_gui in your templates, use image_class=thumb as additional parameter.

You can also check here, although I am not sure whether everything is still correct here:
http://ez.no/download/ez_publish/changelogs/ez_publish_3_3/new_image_system

Greetings from Luxembourg

Claudia

Andreas Kaiser

Monday 06 November 2006 2:55:22 pm

Thanks Claudia.

I searched the documentation for 3.8, but that link helps a lot to understand how the image processing works.

It's impressive what ez publish is able to do - and how helpful you are ;)

eZ Partner in Madrid (Spain)
Web: http://www.atela.net/

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

Main resources:

Total runtime0.7663 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0064 587.9063152.6250
Module start 'layout' 0.00640.0024 740.531339.4453
Module start 'content' 0.00890.7560 779.9766532.7344
Module end 'content' 0.76490.0014 1,312.710912.1719
Script end 0.7662  1,324.8828 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.4726160.0002
Check MTime0.00190.2500160.0001
Mysql Total
Database connection0.00090.122010.0009
Mysqli_queries0.714793.2732570.0125
Looping result0.00060.0797550.0000
Template Total0.732795.620.3663
Template load0.00180.233120.0009
Template processing0.730995.384920.3654
Template load and register function0.00010.011010.0001
states
state_id_array0.00160.210110.0016
state_identifier_array0.00290.381220.0015
Override
Cache load0.00140.1842190.0001
Sytem overhead
Fetch class attribute can translate value0.00140.187720.0007
Fetch class attribute name0.00120.162740.0003
XML
Image XML parsing0.00050.069220.0003
class_abstraction
Instantiating content class attribute0.00000.001650.0000
General
dbfile0.00080.1071160.0001
String conversion0.00000.001040.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/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: 14
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs