Forums / Setup & design / Images grew bigger

Images grew bigger

Author Message

esperion H

Thursday 27 July 2006 4:02:27 pm

I changed the node for the index and default page in admin (set up> global settings) from the default node to the product node in my webshop on the global settings page.

On this page it is also possible to change the default pixel size for small, medium and large images, but I left them as they were. Still the productimages now grew from 200px to 300px all of a sudden and now they look too big.

It may be that when I changed the position of the node, I changed it to a position where the images are set be displayed bigger, but where could that setting be?

As I didn't change anything about imagesize on this side and the imagesize still got affected by editing this page, I don't know where to correct this.

Where?

(I have tried to reset the number of the node and cleared the cache, without help.)

Christian Lundvang

Friday 28 July 2006 5:31:26 am

Hi.

Does this webshop use another siteaccess? It seems that it uses the standard images settings of eZ publish.

Have a look in /override/image.ini.append.php.

--
Best Regards
Christian Lundvang
http://www.nxc.no

esperion H

Friday 28 July 2006 5:43:34 am

Thank you for your answer. I had a look at this file, and it only speaks about filesizes, not where these sizes are to be applied. I use the standard shop siteaccess.

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

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

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

It should be the template node/view/full.tpl that displays the products. Here it says that image_class=medium. I tried to change it to small, even, but no effect.

So if it isn't the override/image.ini.append.php file nor the full.tpl template that governs this - what is? Full.tpl calls design/base/override/templates/embed/image.tpl and I looked at this, too. Apparently it takes the value of image_class from full.tpl, so that didn't help either. I report this as a bug if noone in the community has an answer.

Christian Lundvang

Wednesday 02 August 2006 5:43:05 am

Which override template does you product use? base/override/templates/full/product.tpl?

If that's the case, and I think it is, then this is where you should change it.

{section show=$node.object.data_map.image.content}
        <div class="attribute-image">
            {attribute_view_gui alignment=right image_class=medium attribute=$node.object.data_map.image.content.data_map.image}
        </div>
    {/section}

And remember to clear the cache.

--
Best Regards
Christian Lundvang
http://www.nxc.no

esperion H

Wednesday 02 August 2006 7:29:34 am

Hi Christian, thank you for coming back to the thread.

I follow your line of thought completely. The override you are refering to is an override of node/view/full.tpl.

This should be a matter of adjusting this piece of code, right?

image_class=medium

The problem is that I can change this to small, large, medium and ez publish still outputs an image of 300px. It does no longer respond to the code. Somehow it is overridden by another code. This is now the case across my site. Any image I publish is 300 px. However, the images respond to changes in the settings on the global settings page for large images. This doesn't help the fact that I am left with only one image_class.

I have reported this as a bug. It has new bug nr. 8732. Hopefully it is possible to confirm the bug and solve the issue.

esperion H

Tuesday 08 August 2006 5:11:58 am

I have this code for a products page:

{section show=$node.data_map.image.content}
        <div class="attribute-image">
            {attribute_view_gui alignment=right image_class=medium
attribute=$node.data_map.image.content.data_map.image}
        </div>
    {/section}

I have this code for the override/image.ini file.

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

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

[large]
Filters[]=geometry/scale=250;250
*/ ?>

This outputs the large imagefile instead of the medium. Can anyone come up with an answer to that?

Martin Ulrich

Tuesday 08 August 2006 1:25:20 pm

which image.ini did you change?

settings\override\image.ini.append.php
settings\siteaccess\shop_site\image.ini.append.php

are the modifications surely executed in files on the server?

_______________________

http://artenic.de ARTENIC - Publishing mit allen Mitteln!

esperion H

Wednesday 09 August 2006 4:37:26 am

Sepp,

This one was changed:

settings\override\image.ini.append.php
The siteaccess image.ini.append.php remains unchanged.

Yes, the modifications are executed in files on the server.

Martin Ulrich

Wednesday 09 August 2006 4:58:45 am

Have you checked with

[TemplateSettings]
Debug=enabled

in
/settings/siteaccess/shop_site/site.ini.append.php

which templates definately in use?

if I right, there is product.tpl for full view in
\design\base\override\templates\full
/shop_site/override/templates/full/

what is exactly in your
/settings/siteaccess/shop_site/image.ini.append.php
?

_______________________

http://artenic.de ARTENIC - Publishing mit allen Mitteln!

esperion H

Wednesday 09 August 2006 5:27:03 am

This is the templates in use:

design/shop/override/templates/full/product.tpl

The imagesize is the same for this one.
design/shop/override/templates/full/folder.tpl

It seems like wherever I put an image, it will turn out as the large version of it. However, the logo image is adjusted correctly.

And in admin the images are all fine.

This is my /settings/siteaccess/shop_site/image.ini.append.php

<?php /* #?ini charset="iso-8859-1"?

[AliasSettings]
AliasList[]
AliasList[]=small
AliasList[]=medium
AliasList[]=listitem
AliasList[]=articleimage
AliasList[]=articlethumbnail
AliasList[]=gallerythumbnail
AliasList[]=imagelarge
AliasList[]=large
AliasList[]=rss
AliasList[]=logo

[small]
Reference=
Filters[]
Filters[]=geometry/scaledownonly=100;160

[medium]
Reference=
Filters[]
Filters[]=geometry/scaledownonly=200;290

[large]
Reference=
Filters[]
Filters[]=geometry/scaledownonly=360;440

[rss]
Reference=
Filters[]
Filters[]=geometry/scale=88;31

[logo]
Reference=
Filters[]
Filters[]=geometry/scaledownonly=250;58

[listitem]
Reference=
Filters[]
Filters[]=geometry/scaledownonly=110;170

[articleimage]
Reference=
Filters[]
Filters[]=geometry/scaledownonly=170;350

[articlethumbnail]
Reference=
Filters[]
Filters[]=geometry/scaledownonly=70;150

[gallerythumbnail]
Reference=
Filters[]
Filters[]=geometry/scaledownonly=70;150

[imagelarge]
Reference=
Filters[]
Filters[]=geometry/scaledownonly=360;440
*/ ?>

Martin Ulrich

Wednesday 09 August 2006 6:13:50 am

perhaps something with embed_image.tpl
there is defined:
{default image_class=large

try copy from admin
\design\admin\override\templates\embed_image.tpl
to
\design\shop\override\templates\embed_image.tpl

and define in /settings/siteaccess/shop_site/override.ini.append.php

[embed_image]
Source=content/view/embed.tpl
MatchFile=embed_image.tpl
Subdir=templates
Match[class_identifier]=image

or do override for
standard/content/datatype/view/ezimage.tpl

moreover notice:
Im not sure the name of sitedesign an related siteaccess have to be equal

/design/shop_site/override/templates/
/design/shop/override/templates/ ?

curious problem

greetings

_______________________

http://artenic.de ARTENIC - Publishing mit allen Mitteln!

esperion H

Wednesday 09 August 2006 6:29:57 am

I'll look into this.

For now:
It is design/base/override/templates/embed/image.tpl in my
site. And I don't have the default image_class there, but
image_class=$object_parameters.size.

Update: I copied code from admin file as you suggested and it seems like its working. At least the picture is displayed in a more appropriate size.

esperion H

Thursday 10 August 2006 3:18:16 am

It looked allright in Opera, but the page got messed up in IE.

eZ debug

Timing: Jan 18 2025 11:27:32
Script start
Timing: Jan 18 2025 11:27:32
Module start 'content'
Timing: Jan 18 2025 11:27:33
Module end 'content'
Timing: Jan 18 2025 11:27:33
Script end

Main resources:

Total runtime1.1793 sec
Peak memory usage4,096.0000 KB
Database Queries226

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0062 588.7422180.8438
Module start 'content' 0.00621.0396 769.5859729.9922
Module end 'content' 1.04580.1333 1,499.5781348.4609
Script end 1.1791  1,848.0391 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00440.3767210.0002
Check MTime0.00170.1465210.0001
Mysql Total
Database connection0.00070.062210.0007
Mysqli_queries1.063190.14742260.0047
Looping result0.00280.23562240.0000
Template Total1.147097.320.5735
Template load0.00220.190520.0011
Template processing1.144797.071420.5724
Template load and register function0.00010.012710.0001
states
state_id_array0.00110.097210.0011
state_identifier_array0.00160.134320.0008
Override
Cache load0.00240.19941600.0000
Sytem overhead
Fetch class attribute can translate value0.00120.103440.0003
Fetch class attribute name0.00160.1346140.0001
XML
Image XML parsing0.00340.289440.0009
class_abstraction
Instantiating content class attribute0.00000.0022150.0000
General
dbfile0.00460.3865270.0002
String conversion0.00000.000530.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
13content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
43content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
28content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 91
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs