private function processImage($field, $options)
    {
        $originalPath = $this->getFilePath(null, $this->fileName);
        $resultPath = $this->getFilePath($field, $this->fileName);
        $this->createFilePath($resultPath);
        switch ($options['method']) {
            case 'thumbnail' :
                \yii\imagine\Image::thumbnail(
                    $originalPath, $options['width'], $options['height']
                )->save($resultPath, [
                    'format' => pathinfo($this->fileName, \PATHINFO_EXTENSION)
                ]);
                break;
        }
    }
private function processImage($field, $options)
    {
        $originalPath = $this->getFilePath(null, $this->fileName);
        $resultPath = $this->getFilePath($field, $this->fileName);
        $this->createFilePath($resultPath);
        switch ($options['method']) {
            case 'thumbnail' :
                \yii\imagine\Image::thumbnail(
                    $originalPath, $options['width'], $options['height']
                )->save($resultPath, [
                    'format' => pathinfo($this->fileName, \PATHINFO_EXTENSION)
                ]);
                break;
        }
    }
private function processImage ( $ field , $ options ) { $ originalPath = $ this -> getFilePath ( null , $ this -> fileName ) ; $ resultPath = $ this -> getFilePath ( $ field , $ this -> fileName ) ; $ this -> createFilePath ( $ resultPath ) ; switch ( $ options [ 'method' ] ) { case 'thumbnail' : \ yii \ imagine \ Image :: thumbnail ( $ originalPath , $ options [ 'width' ] , $ options [ 'height' ] ) -> save ( $ resultPath , [ 'format' => pathinfo ( $ this -> fileName , \ PATHINFO_EXTENSION ) ] ) ; break ; } }
Creates image copies processed with options
@param string $field thumbnail name.
@param array $options processing options.
Creates image copies processed with options