1.0.3 • Published 4 years ago

png-quality v1.0.3

Weekly downloads
2
License
MIT
Repository
-
Last release
4 years ago

Calculates MSE/PSNR about two PNG images.

Usage

const psnr = PngCompare.mse('path/to/first.png', 'path/to/second.png')
// == 0.25

const psnr = PngCompare.psnr('path/to/first.png', 'path/to/second.png')
// == 6.020599913279624

These almost same as MSE/PSNR by ImageMagick.

compare -colorspace RGB -metric MSE path/to/first.png path/to/second.png null:
# == 0.25

compare -colorspace RGB -metric PSNR path/to/first.png path/to/second.png null:
# == 6.0206
1.0.3

4 years ago

1.0.1

5 years ago

1.0.0

5 years ago