# How to un-dither JPEG image?

**URL:** <https://boards.straightdope.com/t/how-to-un-dither-jpeg-image/662558>\
**Category:** Factual Questions\
**Created:** [July 3, 2013, 4:15pm UTC](https://boards.straightdope.com/t/how-to-un-dither-jpeg-image/662558 "2013-07-03T16:15:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![bump](https://avatars.discourse-cdn.com/v4/letter/b/7c8e57/32.png) [@bump](https://boards.straightdope.com/u/bump)\
**Post date:** [July 3, 2013, 4:15pm UTC](https://boards.straightdope.com/t/how-to-un-dither-jpeg-image/662558/1 "2013-07-03T16:15:00Z")

</div>

I’m fiddling around with changing up the colors on a camo pattern for grins- I may end up repainting some of my son’s toys in the pattern eventually.

Anyway, it’s a very simple digital pattern of single-colored blocks- no blending, etc… but whoever saved it on the web did so as a JPEG and as a result, rather than being actual solid blocks, it’s made of blocks with edges of a slightly different color (dithering? JPEG artifacts?), so that I can’t just pick a new color in MS paint and use the paint bucket tool to just replace that color in each block.

Is there a relatively easy way to fix this?

---

<div class="post-metadata">

**Author:** ![Fear\_Itself](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/fear_itself/32/19637_2.png) [@Fear\_Itself](https://boards.straightdope.com/u/Fear_Itself)\
**Post date:** [July 3, 2013, 4:22pm UTC](https://boards.straightdope.com/t/how-to-un-dither-jpeg-image/662558/2 "2013-07-03T16:22:02Z")

</div>

Not in MS Paint. But programs like Photoshop can create a filter that reduces the number of colors of an image so that the edges sharpen. It kind of posterizes the image, but if it is a camo pattern, I would think that would be just what you want to do.

---

<div class="post-metadata">

**Author:** ![aNewLeaf](https://avatars.discourse-cdn.com/v4/letter/a/ac91a4/32.png) [@aNewLeaf](https://boards.straightdope.com/u/aNewLeaf)\
**Post date:** [July 3, 2013, 4:33pm UTC](https://boards.straightdope.com/t/how-to-un-dither-jpeg-image/662558/3 "2013-07-03T16:33:02Z")

</div>

^^^ MS Paint can reduce the color space. When you Save As, select 16-color BMP.  
It’s not on-the-fly but it works just fine.

---

<div class="post-metadata">

**Author:** ![Mangetout](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/mangetout/32/19_2.png) [@Mangetout](https://boards.straightdope.com/u/Mangetout)\
**Post date:** [July 3, 2013, 7:23pm UTC](https://boards.straightdope.com/t/how-to-un-dither-jpeg-image/662558/4 "2013-07-03T19:23:33Z")

</div>

I’d use Inkscape.

Import the bitmap, trace it to vector (you can tell it how many different colours to use), then use the ‘simplify’ function to smooth out any jaggies.

---

<div class="post-metadata">

**Author:** ![Reply](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/reply/32/15952_2.png) [@Reply](https://boards.straightdope.com/u/Reply)\
**Post date:** [July 3, 2013, 7:48pm UTC](https://boards.straightdope.com/t/how-to-un-dither-jpeg-image/662558/5 "2013-07-03T19:48:38Z")

</div>

[VectorMagic](http://vectormagic.com/home) is another vector conversion service, and the best one I’ve ever seen. Give it a shot if Inkscape doesn’t work out.
