Skip to content

rgba(false) returns garbled png #954

@crowmagnumb

Description

@crowmagnumb

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
result

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions