protected function registerMediaConversionsFromTheme()
    {
        $namespace = (new ReflectionClass($this))->getNamespaceName();
        $className = strtolower(explode('\\', $namespace)[1]);
        $themeOptions = app('setting.themeOptions')->getOption("{$className}.medialibrary");

        if (! $themeOptions) {
            return;
        }

        foreach ($themeOptions as $themeOption) {
            $this->addMediaConversion($themeOption->name)
                ->setManipulations((array) $themeOption->manipulation)
                ->performOnCollections($themeOption->collection);
        }
    }