From bdde6dde92df5f437087a61e789e024f75af2626 Mon Sep 17 00:00:00 2001 From: makeworld Date: Fri, 30 Apr 2021 20:21:53 -0400 Subject: [PATCH] Add tip on fixing low-spread palettes --- MANPAGE.md | 2 ++ didder.1 | 7 +++++++ didder.1.md | 2 ++ 3 files changed, 11 insertions(+) diff --git a/MANPAGE.md b/MANPAGE.md index bb34638..e1b0db3 100644 --- a/MANPAGE.md +++ b/MANPAGE.md @@ -234,6 +234,8 @@ Dithered images must only be encoded in a lossless image format. This is why the To increase the dithering artifacts for aesthetic effect, you can downscale the image before dithering and upscale after. Like if the image is 1000 pixels tall, your command can look like **didder --height 500 --upscale 2 [...]**. Depending on the input image size and what final size you want, you can of course just upscale as well. +If your palette (original or recolor) is low-spread, meaning it doesn't span much of the available shades of a single hue or the entire RGB space, you can use flags like **\--brightness**, **\--contrast**, and **\--saturation** to improve the way dithered images turn out. For example, if your palette is dark, you can turn up the brightness. + # EXAMPLES **didder --palette 'black white' -i input.jpg -o test.png bayer 16x16** diff --git a/didder.1 b/didder.1 index a6de1cf..96557bf 100644 --- a/didder.1 +++ b/didder.1 @@ -480,6 +480,13 @@ Like if the image is 1000 pixels tall, your command can look like \f[B]didder \[en]height 500 \[en]upscale 2 [\&...]\f[R]. Depending on the input image size and what final size you want, you can of course just upscale as well. +.PP +If your palette (original or recolor) is low-spread, meaning it +doesn\[cq]t span much of the available shades of a single hue or the +entire RGB space, you can use flags like \f[B]--brightness\f[R], +\f[B]--contrast\f[R], and \f[B]--saturation\f[R] to improve the way +dithered images turn out. +For example, if your palette is dark, you can turn up the brightness. .SH EXAMPLES .TP \f[B]didder \[en]palette `black white' -i input.jpg -o test.png bayer 16x16\f[R] diff --git a/didder.1.md b/didder.1.md index daa9ccf..3466fcf 100644 --- a/didder.1.md +++ b/didder.1.md @@ -207,6 +207,8 @@ Dithered images must only be encoded in a lossless image format. This is why the To increase the dithering artifacts for aesthetic effect, you can downscale the image before dithering and upscale after. Like if the image is 1000 pixels tall, your command can look like **didder --height 500 --upscale 2 [...]**. Depending on the input image size and what final size you want, you can of course just upscale as well. +If your palette (original or recolor) is low-spread, meaning it doesn't span much of the available shades of a single hue or the entire RGB space, you can use flags like **\--brightness**, **\--contrast**, and **\--saturation** to improve the way dithered images turn out. For example, if your palette is dark, you can turn up the brightness. + # EXAMPLES **didder --palette 'black white' -i input.jpg -o test.png bayer 16x16**