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

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