jimp-dev / jimp

An image processing library written entirely in JavaScript for Node, with zero external or native dependencies.
http://jimp-dev.github.io/jimp/
MIT License
13.97k stars 762 forks source link

Dither not working #1001

Open 1Euro7Cent opened 3 years ago

1Euro7Cent commented 3 years ago

Expected Behavior

this image example to something like this dithered_image

Current Behavior

this image example to this image dithered_image there is just nothing happening

Failure Information (for bugs)

the image is not being dithered

Steps to Reproduce

my code snippet:


Jimp.read('./server/images/example.png', async function (err, image) {

            async function dithering() {
                console.log('dithering', file)

                image.dither565()
                image.write(`./server/images/dithered_image.png`)

                file = `./server/images/dithered_image.png`
            } 
     //...
     //...
  1. step 1: dither the image
  2. step 2: see the result

Context

Failure Logs

no errors / logs

hipstersmoothie commented 1 year ago

Maybe we can look into a 3rd party lib devoted to dithering