alexharris / alexharris/ditherit

Black and White Modes are Stored with 32 Bit Color Depth

Offen
#36 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Vue
Sterne
272
Forks
28
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

When dithering is set to black and white, the dithered images outputted are using 32 bit color depth, which is unnecessary as 1-bit depth could be used instead.

In the example images attached, the output from DitherIt is 9.31 KB:
![32-bit](https://github.com/alexharris/ditherit-v2/assets/30810768/6d051e4c-3de4-4f38-b973-67f9163834e1)

If converted to 1-bit using a Python Script, we get a size of just 3.86KB, with no loss in image quality:
![1-bit](https://github.com/alexharris/ditherit-v2/assets/30810768/938547a0-b18e-4f11-9356-14a54b48aa94)

Would it be possible to add a conversion to 1-bit of BW color modes? I wouldn't mind writing the code and submitting a pull request if so.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.