# Overriding default ImageMagick thumb driver

**URL:** <https://forum.getkirby.com/t/overriding-default-imagemagick-thumb-driver/17316>\
**Category:** Questions\
**Tags:** v3\
**Created:** [February 18, 2020, 10:35am UTC](https://forum.getkirby.com/t/overriding-default-imagemagick-thumb-driver/17316 "2020-02-18T10:35:34Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![piper](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/piper/32/1869_2.png) [@piper](https://forum.getkirby.com/u/piper)\
**Post date:** [February 18, 2020, 10:35am UTC](https://forum.getkirby.com/t/overriding-default-imagemagick-thumb-driver/17316/1 "2020-02-18T10:35:34Z")

</div>

I’m trying to figure out a way to override the default ImageMagick thumb driver in Kirby 3, similar to what is discussed on this Kirby 2 thread:

> [@Image format conversion in thumb()](https://forum.getkirby.com/t/image-format-conversion-in-thumb/5741):
>
> Is it possible to convert the image format of uploaded images? My client has uploaded a lot of .png files, and it would be more bandwidth-friendly to serve them as .jpg instead. I already use the thumb() method to display most images on the site to control resolution and file size. I imagine something like this: thumb($img, array('convert' =\> 'jpg', 'quality' =\> 70)) Any suggestions?

But I cannot seem to find any guidance on it anywhere! Perhaps I’m searching for the wrong thing? If anyone has any tips or examples, I would be super grateful!!

(Specifically I’m trying to dither specific images, not all, but I can dig in to that after I figure out how to override the driver in the first place!)

---

<div class="post-metadata">

**Author:** ![ahmetbora](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/ahmetbora/32/11671_2.png) [@ahmetbora](https://forum.getkirby.com/u/ahmetbora)\
**Post date:** [February 18, 2020, 10:38am UTC](https://forum.getkirby.com/t/overriding-default-imagemagick-thumb-driver/17316/2 "2020-02-18T10:38:05Z")

</div>

You can override thumb core component, here documentation:

> **[Thumbs](https://getkirby.com/docs/reference/plugins/components/thumb)**
>
> Documentation for the Vue component.

---

<div class="post-metadata">

**Author:** ![piper](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/piper/32/1869_2.png) [@piper](https://forum.getkirby.com/u/piper)\
**Post date:** [February 18, 2020, 10:50am UTC](https://forum.getkirby.com/t/overriding-default-imagemagick-thumb-driver/17316/3 "2020-02-18T10:50:24Z")

</div>

Ahhh thank you so much. That looks like exactly what I was looking for!

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [February 18, 2020, 11:07am UTC](https://forum.getkirby.com/t/overriding-default-imagemagick-thumb-driver/17316/4 "2020-02-18T11:07:09Z")

</div>

If you want to override the IM and GD drivers, check out the Focus plugin for an example: [https://github.com/flokosiol/kirby-focus](https://github.com/flokosiol/kirby-focus)

You probably don’t want to create your own thumb generator?

---

<div class="post-metadata">

**Author:** ![piper](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/piper/32/1869_2.png) [@piper](https://forum.getkirby.com/u/piper)\
**Post date:** [February 18, 2020, 11:21am UTC](https://forum.getkirby.com/t/overriding-default-imagemagick-thumb-driver/17316/5 "2020-02-18T11:21:59Z")

</div>

I suppose not? I’m not sure. The goal is to be able to dither certain images, basically. I figured this is going to involve modifying the existing IM driver in some way, but that might not be right!

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [February 18, 2020, 11:25am UTC](https://forum.getkirby.com/t/overriding-default-imagemagick-thumb-driver/17316/6 "2020-02-18T11:25:43Z")

</div>

> [@piper](#):
>
> I figured this is going to involve modifying the existing IM driver in some way, but that might not be right!

Yes, I think that’s right.
