Forums / Developer / Howto use the new Image System in modules?

"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".

Howto use the new Image System in modules?

Author Message

Jerry Jalava

Sunday 04 January 2004 1:41:59 am

Hi,

I just updated from 3.2 to 3.3 and I have big problems with few of my modules...

I use image uploading in them and in 3.2 this worked:
...
include_once( "kernel/common/image.php" );
$image =& eZImage::create( $contentObjectAttributeID , $version );
$image->setAttribute( "contentobject_attribute_id", $contentObjectAttributeID );
$image->setAttribute( "version", $version );
...

But now it doesn't anymore... I get error: Undefined class name 'ezimage'.

So, how should I use image system in 3.3?

Regards,
Jerry