jimp-dev / jimp-dev/jimp

rgba(false) returns garbled png

Open
#954 4 comments 0 reactions 0 assignees View on GitHub
bug help wanted solution in issue
Dominant language
TypeScript
Stars
14.7k
Forks
777
PR merge metrics
No merged PRs in 30d

Description

# Expected Behavior

The alpha channel to be removed from my png without garbling it.

# Current Behavior

It returns a garbled image, sans alpha channel though!

# Failure Information (for bugs)

## Steps to Reproduce

```
const Jimp = require("jimp");

let src = "icon.png";

Jimp.read(src, (err, image) => {
if (err) {
console.log(err);
return;
}
image.rgba(false).write("result.png");
});
```

## Context
![icon](https://user-images.githubusercontent.com/1664445/96315453-2349a380-0fc3-11eb-8108-30ab495b975d.png)
![result](https://user-images.githubusercontent.com/1664445/96315461-2349a380-0fc3-11eb-9628-3683ac139a9b.png)

- Jimp Version: 0.16.1
- Operating System: Ubuntu 18.04 & macOS 10.15.7
- Node version: 12.7.0

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.