Forums / Setup & design / Image size cannot be set in template

Image size cannot be set in template

Author Message

Roger Schmidt

Friday 18 August 2006 7:44:55 am

Hi all

In image.ini.append.php of my siteaccess following entries for image sizes are available:

[small]
Filters[]=geometry/scale=50;50

[medium]
Filters[]=geometry/scale=200;200

[large]
Filters[]=geometry/scale=300;300

In one of my templates following code is used for image display:
{attribute_view_gui attribute=$node.object.data_map.image.content.data_map.image image_class="small"}

But resulting page does not take settings in image.ini.append.php into account.

Address of pic makes sense though (.._small.png):
mysite/storage/images/media/images/article_image_02/245-1-ger-DE/article_image_02_small.png

Only name of resulting image is changed (article_image_02_small.png, article_image_02_medium.png etc.), but actual size does not change!

For converting graphic GD is used, ImageMagick does not work (I do not know why). I am not sure, if my hoster is supporting ImageMagick, for this reason, I have chosen to use GD for now.

Could it be a problem with GD? Png format is supported? What about GD2? Any hints?
Thanks and regards,
Roger

esperion H

Friday 18 August 2006 2:09:50 pm

Hi,

This is just to say that I ran into the same issue when I did a modification in the global settings page in admin.

This page also controls the override settings for the image sizes. Now I have only one image size category - the large one.

As in your case, even if the templates call for an image size medium or small, it is the large version that is displayed.

I have posted a bug report on this issue (nr. 8732). It is not yet confirmed.

Obviously, I am also interested in a solution to this.

Regards.

Claudia Kosny

Friday 18 August 2006 2:11:41 pm

Hello Roger,

do you get any error messages in the debug output (clear the cache before checking that to make sure that ez creates the pictures again)?
Also go to the var/<site_access>storage/images folder and check there for a few pics whether the image variations are created there.

Greetings from Luxembourg

Claudia

Roger Schmidt

Saturday 19 August 2006 10:07:17 am

Alright! I have checked the debug messages a little bit closer than before. ;-)

And there are two warnings which explain, why conversions do not work!

Warning: eZImageManager::convert

The filter 'geometry/scaledownonly' is not supported by any of the image handlers, will ignore this filter

Warning: eZImageManager::convert

The filter 'geometry/scale' is not supported by any of the image handlers, will ignore this filter

I had a closer look on GD installation. And when running a test script following error message is appearing:
Fatal error: Call to undefined function: imagecreate()

When I found the cause of this installation problem, I will post it as reference.

Thanks and regards,
Roger

Roger Schmidt

Saturday 19 August 2006 10:21:17 am

Extension_dir was wrongly specified in php.ini. For this reason corresponding dll was not found. It was a fresh php4 installation.

Everything is working now.

I feel like an absolute beginner at this moment! ;-)

Roger

eZ debug

Timing: Jan 18 2025 10:20:12
Script start
Timing: Jan 18 2025 10:20:12
Module start 'content'
Timing: Jan 18 2025 10:20:13
Module end 'content'
Timing: Jan 18 2025 10:20:14
Script end

Main resources:

Total runtime1.8947 sec
Peak memory usage4,096.0000 KB
Database Queries202

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0069 594.3984180.8281
Module start 'content' 0.00701.7610 775.2266538.8047
Module end 'content' 1.76790.1268 1,314.0313338.1094
Script end 1.8947  1,652.1406 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00410.2163210.0002
Check MTime0.00170.0885210.0001
Mysql Total
Database connection0.00120.063910.0012
Mysqli_queries1.815795.82812020.0090
Looping result0.00200.10482000.0000
Template Total1.854797.920.9273
Template load0.00230.121020.0011
Template processing1.852497.762920.9262
Template load and register function0.00010.007710.0001
states
state_id_array0.00120.062310.0012
state_identifier_array0.00230.122720.0012
Override
Cache load0.00180.0970440.0000
Sytem overhead
Fetch class attribute can translate value0.00140.074440.0004
Fetch class attribute name0.00100.055050.0002
XML
Image XML parsing0.00060.033740.0002
class_abstraction
Instantiating content class attribute0.00000.000550.0000
General
dbfile0.00750.3939210.0004
String conversion0.00000.000230.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
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
11content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
6content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 26
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs