array( 'GD', 'Shell' ), ); // Options for the ezcImageConverter // Defines global MIME type conversions $options = array( 'conversions' => array( 'image/gif' => 'image/png', 'image/bmp' => 'image/jpeg', ) ); // Create the converter itself. $converter = new ezcImageConverter( $settings, $options ); // Define a transformation $thumbnail = array( 'filters' => array( 'scaleDownByWidth' => array( 'width' => 100 ), 'border' => array( 'width' => 2, 'color' => array( 100, 100, 100 ), ), ), // Which MIME types the conversion may output 'mimeTypes' => array( 'image/jpeg', 'image/png' ) ); // Create the transformation inside the manager $converter->createTransformation( 'thumbnail', $thumbnail ); // Transform an image. $converter->transform( 'thumbnail', 'var/storage/football.bmp', 'var/storage/footballThumb.jpg' ); ?>