Skip to content

ideamans/node-png-quality

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Node module to calculate MSE/PSNR of two PNG images.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •