src/image/Item.php
public function applyFilter($filterName)
    {
        return ($filterItem = Yii::$app->storage->getFiltersArrayItem($filterName)) ? Yii::$app->storage->addImage($this->getFileId(), $filterItem['id'], !YII_ENV_PROD) : false;
    }
public function applyFilter($filterName)
    {
        return ($filterItem = Yii::$app->storage->getFiltersArrayItem($filterName)) ? Yii::$app->storage->addImage($this->getFileId(), $filterItem['id'], !YII_ENV_PROD) : false;
    }
public function applyFilter ( $ filterName ) { return ( $ filterItem = Yii :: $ app -> storage -> getFiltersArrayItem ( $ filterName ) ) ? Yii :: $ app -> storage -> addImage ( $ this -> getFileId ( ) , $ filterItem [ 'id' ] , ! YII_ENV_PROD ) : false ; }
Apply a new filter for the original ussed file and return the new created image object.

@param string $filterName The name of a filter like `tiny-thumbnail` or a custom filter you have defined in your filters list.
@return boolean|\luya\admin\image\Item Returns boolean or image item object if its found.
Apply a new filter for the original ussed file and return the new created image object .