jimp-dev/jimp

The output image size is twice as big as the input image size, although they have the same dimensions.

Open

#907 ouverte le 9 juil. 2020

Voir sur GitHub
 (0 commentaires) (5 réactions) (0 assignés)JavaScript (785 forks)batch import
bugfile size issuehelp wanted

Métriques du dépôt

Stars
 (13 218 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

Expected Behavior

I expect the output image size to be close to the input image size after very small processing.

Current Behavior

The output image is twice as big.

Failure Information (for bugs)

It has nothing to do with the image resolution, in fact it's smaller. Other thing I noticed is the bit depth of the output image is higher.

Steps to Reproduce

let image = await Jimp.read(path.join(exportsdir, fileName))
image
	.crop(border, border, image.bitmap.width-(border*2), image.bitmap.height-(border*2))
	.resize(width, height)
	.write('croppedresized.png');

Screenshots

http://prntscr.com/tesv65

Context

  • Jimp Version: "^0.14.0"
  • Operating System: "Windows 7"
  • Node version: 12.18

Failure Logs

Guide contributeur