classes/image_converter.php
public function perform( $src, $dst )
    {
        // fetch the input file locally
        $inClusterHandler = eZClusterFileHandler::instance( $src );
        $inClusterHandler->fetch();

        try {
            $this->converter->transform( 'transformation', $src, $dst );
        }
        catch ( Exception $e )
        {
            $inClusterHandler->deleteLocal();
            throw $e;
        }

        // store the output file to the cluster
        $outClusterHandler = eZClusterFileHandler::instance();

        // @todo Check if the local output file can be deleted at that stage. Theorically yes.
        $outClusterHandler->fileStore( $dst, 'image' );
        
        // fixing the file permissions
        eZImageHandler::changeFilePermissions( $dst );
    }
public function perform( $src, $dst )
    {
        // fetch the input file locally
        $inClusterHandler = eZClusterFileHandler::instance( $src );
        $inClusterHandler->fetch();

        try {
            $this->converter->transform( 'transformation', $src, $dst );
        }
        catch ( Exception $e )
        {
            $inClusterHandler->deleteLocal();
            throw $e;
        }

        // store the output file to the cluster
        $outClusterHandler = eZClusterFileHandler::instance();

        // @todo Check if the local output file can be deleted at that stage. Theorically yes.
        $outClusterHandler->fileStore( $dst, 'image' );
        
        // fixing the file permissions
        eZImageHandler::changeFilePermissions( $dst );
    }
public function perform ( $ src , $ dst ) { // fetch the input file locally $ inClusterHandler = eZClusterFileHandler :: instance ( $ src ) ; $ inClusterHandler -> fetch ( ) ; try { $ this -> converter -> transform ( 'transformation' , $ src , $ dst ) ; } catch ( Exception $ e ) { $ inClusterHandler -> deleteLocal ( ) ; throw $ e ; } // store the output file to the cluster $ outClusterHandler = eZClusterFileHandler :: instance ( ) ; // @todo Check if the local output file can be deleted at that stage. Theorically yes. $ outClusterHandler -> fileStore ( $ dst , 'image' ) ; // fixing the file permissions eZImageHandler :: changeFilePermissions ( $ dst ) ; }
Performs the ezcImageConverter transformation

@param  string $src Source image
@param  string $dst Destination image
@return void
Performs the ezcImageConverter transformation