Image datatype and image aliases

Author Message

Pascal France

Monday 06 October 2008 8:11:28 am

Hi,

I use eZ Publish 3.9.3

When I use the default image class to import some images, I get 2 aliases of it: large and reference.
1°/ Why do I get only these 2 alias while I don't use any override of image.ini and while the size of the original image is 3885x2565 ? I should also get small, medium and rss aliases.

2°/ Why don't I get alias if I create my own image class ? I haven't found any place in image.ini where to specify the name of a class which should be affected by the creation of aliases.Is it hard-coded somewhere ?

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

Gaetano Giunta

Monday 06 October 2008 11:18:31 am

1 - Maybe because images variations are created on-the-fly when you use them in a given template and the template is displayed?
It sure would save a lot of space and processing time compared to "create all variations immediately for all images"...

2 - usage of image aliases is not tied to classes, but rather to templates

Principal Consultant International Business
Member of the Community Project Board

Pascal France

Monday 06 October 2008 1:02:29 pm

Hi Gaetano,

Thank you for your reply.

As all aliases are created at the time we upload an image with the online editor, I was amazed not seeing all aliases in the storage directory after uploading an image from an image dataype.

I just tested the on-the-fly image creation and, of course, it works perfectly.

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

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 21:05:02
Script start
Timing: Jan 18 2025 21:05:02
Module start 'layout'
Timing: Jan 18 2025 21:05:02
Module start 'content'
Timing: Jan 18 2025 21:05:03
Module end 'content'
Timing: Jan 18 2025 21:05:03
Script end

Main resources:

Total runtime1.2895 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.0065 589.0547152.6250
Module start 'layout' 0.00650.0071 741.679739.4453
Module start 'content' 0.01361.2743 781.1250532.5859
Module end 'content' 1.28790.0016 1,313.710912.1563
Script end 1.2895  1,325.8672 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00290.2275160.0002
Check MTime0.00120.0928160.0001
Mysql Total
Database connection0.00110.087910.0011
Mysqli_queries1.234595.7377570.0217
Looping result0.00100.0769550.0000
Template Total1.243196.420.6215
Template load0.00210.163020.0011
Template processing1.241096.235820.6205
Template load and register function0.00020.015910.0002
states
state_id_array0.00110.085410.0011
state_identifier_array0.00080.058220.0004
Override
Cache load0.00170.1329200.0001
Sytem overhead
Fetch class attribute can translate value0.00120.093120.0006
Fetch class attribute name0.00190.146940.0005
XML
Image XML parsing0.00070.054420.0004
class_abstraction
Instantiating content class attribute0.00000.000740.0000
General
dbfile0.00080.0635160.0001
String conversion0.00000.002140.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/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
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 12
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs