jimp-dev/jimp

rgba(false) returns garbled png

Open

#954 aperta il 16 ott 2020

Vedi su GitHub
 (4 commenti) (0 reazioni) (0 assegnatari)JavaScript (785 fork)batch import
bughelp wantedsolution in issue

Metriche repository

Star
 (13.218 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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

Guida contributor