protected function makeCropName(UploadableFile $file, $coordinates)
    {
        $ext    = $file->getExtension();
        $suffix = implode('_', $coordinates);

        return preg_replace('/\.'. $ext .'$/ui', '_crop_'. $suffix .'.'. $ext, $file->getWebPath());
    }
protected function makeCropName(UploadableFile $file, $coordinates)
    {
        $ext    = $file->getExtension();
        $suffix = implode('_', $coordinates);

        return preg_replace('/\.'. $ext .'$/ui', '_crop_'. $suffix .'.'. $ext, $file->getWebPath());
    }
protected function makeCropName ( UploadableFile $ file , $ coordinates ) { $ ext = $ file -> getExtension ( ) ; $ suffix = implode ( '_' , $ coordinates ) ; return preg_replace ( '/\.' . $ ext . '$/ui' , '_crop_' . $ suffix . '.' . $ ext , $ file -> getWebPath ( ) ) ; }
Returns the name for a cropped file

@param UploadableFile $file
@param $coordinates
@return mixed
Returns the name for a cropped file