jimp-dev / jimp-dev/jimp

Dither not working

Open
#1,001 1 comment 1 reaction 0 assignees View on GitHub
bug help wanted
Dominant language
TypeScript
Stars
14.7k
Forks
777
PR merge metrics
No merged PRs in 30d

Description

# Expected Behavior
this image
![example](https://user-images.githubusercontent.com/67194495/113842856-670faf80-9793-11eb-9d5d-867273fe6d3f.png)
to something like this
![dithered_image](https://user-images.githubusercontent.com/67194495/113843205-ad650e80-9793-11eb-8681-4bc8d08b8e12.png)
# Current Behavior
this image
![example](https://user-images.githubusercontent.com/67194495/113843333-c8378300-9793-11eb-81b3-7c64953367d7.png)
to this image
![dithered_image](https://user-images.githubusercontent.com/67194495/113843363-ce2d6400-9793-11eb-9e1a-aff35b66b790.png)
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

- Jimp Version: 0.16.1
- Operating System: Windows 10 64 bit
- Node version: v14.16.0

## Failure Logs
no errors / logs

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.