# Extend core component thumb

**URL:** <https://forum.getkirby.com/t/extend-core-component-thumb/13633>\
**Category:** Questions\
**Tags:** v3\
**Created:** [April 2, 2019, 12:17pm UTC](https://forum.getkirby.com/t/extend-core-component-thumb/13633 "2019-04-02T12:17:11Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Author:** ![moeli](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/moeli/32/8964_2.png) [@moeli](https://forum.getkirby.com/u/moeli)\
**Post date:** [April 3, 2019, 9:15am UTC](https://forum.getkirby.com/t/extend-core-component-thumb/13633/14 "2019-04-03T09:15:24Z")

</div>

```auto
Kirby::plugin('moeli/own-thumb', [
    'components' => [
        'thumb' => function (Kirby\Cms\App $kirby, string $src, string $dst, array $options) {
            if (isset($options['own']) === true) {
                return myThumbGenerator($src, $dst, $options);
            }

            $core = require $kirby->root('kirby') . DIRECTORY_SEPARATOR . 'config' . DIRECTORY_SEPARATOR . 'components.php';
            return $core['thumb']($kirby, $src, $dst, $options);
        }
    ],
]);

```

Thx @distantnative. Good idea. I just changed the root folder because ‘config’ seems to point to ‘site/config’

---

_[View the full topic](https://forum.getkirby.com/t/extend-core-component-thumb/13633)._
