private function getPathsForLocalAsset(Asset $image)
    {
        /** @var LocalVolumeInterface $volume */
        try {
            $volume = $image->getVolume();
            $this->transformPath = ImagerHelpers::getTransformPathForAsset($image);
        } catch (InvalidConfigException $e) {
            Craft::error($e->getMessage(), __METHOD__);
            throw new ImagerException($e->getMessage(), $e->getCode(), $e);
        }

        $this->path = FileHelper::normalizePath($volume->getRootPath().'/'.$image->folderPath);
        $this->url = $image->getUrl();
        $this->filename = $image->getFilename();
        $this->basename = $image->getFilename(false);
        $this->extension = $image->getExtension();
    }
private function getPathsForLocalAsset(Asset $image)
    {
        /** @var LocalVolumeInterface $volume */
        try {
            $volume = $image->getVolume();
            $this->transformPath = ImagerHelpers::getTransformPathForAsset($image);
        } catch (InvalidConfigException $e) {
            Craft::error($e->getMessage(), __METHOD__);
            throw new ImagerException($e->getMessage(), $e->getCode(), $e);
        }

        $this->path = FileHelper::normalizePath($volume->getRootPath().'/'.$image->folderPath);
        $this->url = $image->getUrl();
        $this->filename = $image->getFilename();
        $this->basename = $image->getFilename(false);
        $this->extension = $image->getExtension();
    }
private function getPathsForLocalAsset ( Asset $ image ) { /** @var LocalVolumeInterface $volume */ try { $ volume = $ image -> getVolume ( ) ; $ this -> transformPath = ImagerHelpers :: getTransformPathForAsset ( $ image ) ; } catch ( InvalidConfigException $ e ) { Craft :: error ( $ e -> getMessage ( ) , __METHOD__ ) ; throw new ImagerException ( $ e -> getMessage ( ) , $ e -> getCode ( ) , $ e ) ; } $ this -> path = FileHelper :: normalizePath ( $ volume -> getRootPath ( ) . '/' . $ image -> folderPath ) ; $ this -> url = $ image -> getUrl ( ) ; $ this -> filename = $ image -> getFilename ( ) ; $ this -> basename = $ image -> getFilename ( false ) ; $ this -> extension = $ image -> getExtension ( ) ; }
Get paths for a local asset

@param Asset $image

@throws ImagerException
Get paths for a local asset