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.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.