Understanding Image/Thumbnail functionnalities ? Help :)

Author Message

H-Works Agency

Saturday 16 April 2005 6:53:23 am

Hi all,

After a lot of search in the doc, i am still not understanding the way EZP 3.5+ handles image compression and thumbnailing.

When does the compression process occurs ? Where thoses files are stored ?

What is the difference between var/sitename/../images and images-versionned ?

Why entering new AliasList[] description in my siteaccess/../image.ini doesn't have the effect of building each AliasList[] entrie during admin image upload ?

Does thoes compressions and multiple copies described in siteacess/../image.ini occurs when the image is uploaded through the admin OR when the specific AliasList[] entries are called in public template ?

Thanx all - Martin

EZP is Great

Jan Borsodi

Wednesday 27 April 2005 12:48:30 am

> When does the compression process occurs ? Where thoses
> files are stored ?

Do you mean compression or scaling?
The compression is handled by either ImageMagick or the GD extension and depends on the image format (some doesn't have compression).

Scaling is done when calling the ImagMagick executable (or in PHP code when using GD).
These files are stored inside the <i>var/storage</i> directory in a subdirectory depending on if it is in a version or not.

> What is the difference between var/sitename/../images and
> images-versionned ?
<i>/images</i> is used when the object is published, it will place the image in a path taken from the URL alias of the object.
<i>/images-versioned</i> is used when editing an object (ie a specific version), at that time the path is not known and the image is stored only under the object/version combination.

> Why entering new AliasList[] description in my
> siteaccess/../image.ini doesn't have the effect of
> building each AliasList[] entrie during admin image
> upload ?
I'm not sure what you mean here. Which description are you referring to?
Do you mean that the list of aliases is not updated when uploading the new image?

> Does thoes compressions and multiple copies described in
> siteacess/../image.ini occurs when the image is uploaded
> through the admin OR when the specific AliasList[] entries
> are called in public template ?

Scaling is done on the original image when it is uploaded if it is defined, if not it is only moved.
For the rest of the aliases it is done the first time it is accessed by the template or PHP code.

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq

H-Works Agency

Wednesday 27 April 2005 9:15:53 am

I understand now the way EZP handle images.

AliasList[] entries are build (either by ImageMagic | GD) first time its called by a template (either in admin | public site).

Thanks a lot for those infos.

EZP is Great

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

Main resources:

Total runtime0.9279 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.0054 589.2734152.6563
Module start 'layout' 0.00540.0047 741.929739.4922
Module start 'content' 0.01010.9167 781.4219552.5781
Module end 'content' 0.92680.0011 1,334.000012.1094
Script end 0.9279  1,346.1094 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.3643160.0002
Check MTime0.00140.1471160.0001
Mysql Total
Database connection0.00100.103610.0010
Mysqli_queries0.872293.9988570.0153
Looping result0.00060.0637550.0000
Template Total0.895596.520.4477
Template load0.00220.241920.0011
Template processing0.893296.260320.4466
Template load and register function0.00010.010810.0001
states
state_id_array0.00130.143810.0013
state_identifier_array0.00070.080120.0004
Override
Cache load0.00210.2224400.0001
Sytem overhead
Fetch class attribute can translate value0.00090.095720.0004
Fetch class attribute name0.00220.233550.0004
XML
Image XML parsing0.00100.110920.0005
class_abstraction
Instantiating content class attribute0.00000.001260.0000
General
dbfile0.00080.0856240.0000
String conversion0.00000.000940.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
3content/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
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
7content/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: 24
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs