Forums / Setup & design / More image sizes (custom)

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

More image sizes (custom)

Author Message

John van der Boom

Tuesday 20 May 2003 2:40:04 am

Hello,

I want to have more then 3 image sizes (small, medium and large). I don't want to change the size of the ones I used now (small, medium and large) but make an new image size.

How can I make a custom size, like gallerysize?
Thank you for you help.

Pawel Frukacz

Thursday 22 May 2003 2:56:45 am

Hello,
You need to add following lines to site.ini to ImageSettings section:
e.g.
TinySizeWidth=50
TinySizeHeight=50

In addition to that add in kernel/classes/datatypes/ezimage/ezimage.php
to attribute function:
case 'tiny': /added
case 'small':
and
if ( $attr == "tiny" ) {$width = $ini->variable( "ImageSettings" , "TinySizeWidth" );
$height = $ini->variable( "ImageSettings" , "TinySizeHeight" );
}