Dithery-cli 1.2.0

dotnet tool install --global Dithery-cli --version 1.2.0
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local Dithery-cli --version 1.2.0
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=Dithery-cli&version=1.2.0
                    
nuke :add-package Dithery-cli --version 1.2.0
                    

Dithery-cli

Command-line image dithering tool written in C#. Dithering part is done with CSharp-Dithering

Sample commands

Save single Atkinson dithered image, with true colors to web safe color reduction to PNG file
dithery half.png -m atkinson -c TrueColorToWebSafe -f SingleImage -o dither.png

Save single Stucki dithered image, with true colors to web safe color reduction to HTML file (includes both original and dithered images in one HTML file)
dithery half.png -m stucki -c TrueColorToWebSafe -f HTMLBasic -o dither.html

Save all ditherings to HTML file, with true colors to web safe color reduction for PNG file
dithery half.png -m All -c TrueColorToWebSafe -f HTMLBasic -o dither.html

Save all ditherings to separate .png files, with true colors to web safe color reduction for PNG file
dithery half.png -m all -c TrueColorToWebSafe -f SingleImage -o dither.png

How to install

Easiest option is to use dotnet global install
dotnet tool install -g Dithery-cli
and after that you can run Dithery-cli from any location with dithery

You can also download Windows release (an .exe file) and Linux release from Releases page

Product Compatible and additional computed target framework versions.
.NET net11.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last Updated
1.2.0 101 11/22/2026
1.1.1 338 12/4/2025
1.1.0 420 2/11/2025
1.0.7 815 11/19/2023
1.0.6 545 11/15/2022
1.0.4 582 11/11/2021
1.0.3 624 10/31/2021
1.0.2 819 9/12/2020
1.0.1 804 9/5/2020
1.0.0 704 8/8/2020

## Version 1.2.0 (released 2026-11-22)
- Use .NET 11.0 for release builds
- Drop net10.0 target (it is not supported anymore)
- Update to LibDithering 1.2.0
- Update to SkiaSharp 4.157.0

## Version 1.1.1 (released 2025-12-04)
- Use .NET 10.0 for release builds
- Drop net8.0 and net9.0 targets (they aren't supported anymore)

## Version 1.1.0 (released 2025-02-11)
- Use .NET 9.0 for release builds
- Drop net6.0 and net7.0 targets (they aren't supported anymore)

## Version 1.0.7 (released 2023-11-18)
- Use .NET 8.0 for release builds
- Drop netcoreapp3.1 and net5.0 targets (they aren't supported anymore)
- Replace System.Drawing with SkiaSharp

## Version 1.0.6 (released 2022-11-15)
- Use .NET 7.0 for release builds

## Version 1.0.5 (released 2022-06-06)
- Add C64 color reduction palette  
- Linux binary

## Version 1.0.4 (released 2021-11-11)
- Nuget release also for .NET 6

## Version 1.0.3 (released 2021-10-31)
- Update System.Drawing.Common
- Nuget release also for .NET 5

## Version 1.0.2 (released 2020-09-12)
- Support LibDithering 0.9.2 (a bit faster)
- Use 1d byte array for faster processing

## Version 1.0.1 (released 2020-09-05)
- Refactor to support LibDithering 0.9.1 (over 20% faster)

## Version 1.0.0 (released 2020-08-08)
- Initial Nuget release