Forums / Setup & design / Understanding Image/Thumbnail functionnalities ? Help :)

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

eZ debug

Timing: Jan 18 2025 04:17:19
Script start
Timing: Jan 18 2025 04:17:19
Module start 'content'
Timing: Jan 18 2025 04:17:19
Module end 'content'
Timing: Jan 18 2025 04:17:19
Script end

Main resources:

Total runtime0.1379 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0071 594.7109180.8125
Module start 'content' 0.00710.0054 775.523497.9609
Module end 'content' 0.01250.1254 873.4844526.6719
Script end 0.1379  1,400.1563 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00372.6746200.0002
Check MTime0.00141.0360200.0001
Mysql Total
Database connection0.00090.680710.0009
Mysqli_queries0.096069.58411410.0007
Looping result0.00120.86801390.0000
Template Total0.125090.610.1250
Template load0.00080.598910.0008
Template processing0.124290.015010.1242
Override
Cache load0.00060.448710.0006
Sytem overhead
Fetch class attribute can translate value0.00090.681510.0009
XML
Image XML parsing0.00030.189110.0003
General
dbfile0.00191.3464200.0001
String conversion0.00000.004130.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0002 secs