This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit ezplatform.com

eZ Community » Forums » Install & configuration » image_class doesnt work
expandshrink

image_class doesnt work

image_class doesnt work

Wednesday 14 November 2012 11:00:10 am - 2 replies

Hello,

Im having a problem with image_class.

I have got all class defined at settings/siteacess/xxx/image.ini.append but the class defined here are not working, the template doesnt show an image when I call an image_class from image.ini.

the image is only showed when I use the image_class original.

settings/override/image.ini

 [ImageMagick]
IsEnabled=true
ExecutablePath=/usr/bin
Executable=convert

settings/siteacess/xxx/image.ini

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

My code:

 {attribute_view_gui attribute=$node.data_map.image image_class=large}

Wednesday 14 November 2012 11:12:35 am

i think, you must to rename the ini files.

image.ini is the default setting file (located under /settings). to override an ini-file, it muss be named as "image.append.ini.php".

so, settings/override/image.ini gets in to settings/override/image.append.ini.php..

hope this resolve your problem

cheers

Wednesday 14 November 2012 12:50:14 pm

A couple of things that you should look at:

does /usr/bin/convert actually exist?  If you have it somewhere else, then you won't get image aliases (which I think is what your problem actually is).  Try and run it on the command line too, to see if there isn't some library problem.

Is the directory /storage/images in what is defined in the site.ini [FileSettings]VarDir setting actually writeable by the user that is running the web server?

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from