public function transformFile(array $data)
    {
        return $this->filterManager->apply(
            $this->dataManager->find('original', $data['filename']),
            array(
                'filters' => array(
                    'crop'=> array(
                        'start' => array($data['x'], $data['y']),
                        'size' => array($data['width'], $data['height'])
                    )
                )
            )
        );
    }
public function transformFile(array $data)
    {
        return $this->filterManager->apply(
            $this->dataManager->find('original', $data['filename']),
            array(
                'filters' => array(
                    'crop'=> array(
                        'start' => array($data['x'], $data['y']),
                        'size' => array($data['width'], $data['height'])
                    )
                )
            )
        );
    }
public function transformFile ( array $ data ) { return $ this -> filterManager -> apply ( $ this -> dataManager -> find ( 'original' , $ data [ 'filename' ] ) , array ( 'filters' => array ( 'crop' => array ( 'start' => array ( $ data [ 'x' ] , $ data [ 'y' ] ) , 'size' => array ( $ data [ 'width' ] , $ data [ 'height' ] ) ) ) ) ) ; }
Transform the file

@param array $data

@return \Liip\ImagineBundle\Binary\BinaryInterface
Transform the file