jimp-dev/jimp

Larger (bytes) processed file than original

Open

#807 aberto em 21 de out. de 2019

Ver no GitHub
 (1 comment) (5 reactions) (0 assignees)JavaScript (785 forks)batch import
bugfile size issuehelp wanted

Métricas do repositório

Stars
 (13.218 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

Expected Behavior

I expect the processed file size to be less than the original

Current Behavior

The processed file size is greater than the original

Failure Information (for bugs)

Even with .quality(75) and in some cases a smaller size then the original, the processed file is larger in bytes

jimp.read("src/path/to/image.jpg", (err, file) => {
    if (err) {
        console.log(err);
    } else {
        file.resize(400, jimp.AUTO)
            .quality(75)
            .write("public/path/to/image.jpg");
    }
});
  • Jimp Version: latest
  • Operating System: Mac
  • Node version: 12

Guia do colaborador