# Posterization filter explained?

**URL:** <https://discourse.processing.org/t/posterization-filter-explained/32001>\
**Category:** Beginners\
**Created:** [August 29, 2021, 9:40pm UTC](https://discourse.processing.org/t/posterization-filter-explained/32001 "2021-08-29T21:40:07Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![josephh](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/josephh/32/210_2.png) [@josephh](https://discourse.processing.org/u/josephh)\
**Post date:** [August 30, 2021, 5:48pm UTC](https://discourse.processing.org/t/posterization-filter-explained/32001/5 "2021-08-30T17:48:28Z")

</div>

Awesome! I am also going to post my code on this thread!

I also found a related topic:

> [@How to apply color quantization to an image](https://discourse.processing.org/t/how-to-apply-color-quantization-to-an-image/4849):
>
> Is there a simple way (preferably a function) to apply [color quantization](https://en.wikipedia.org/wiki/Color_quantization) to an image? Specifically I’d like to pick a PImage and an int of colours, and it’d reduce the number of colours to that int, trying to keep it as close as possible to the original. For reference, imagemagick can do it easily (I’d link to it, but discourse isn’t letting me): magick input.png +dither -colors 6 output.png outputs an image with 6 colours. Not shades, but colours. The +dither is actually not doing dithering b…

---

_[View the full topic](https://discourse.processing.org/t/posterization-filter-explained/32001)._
