Socket
Book a DemoInstallSign in
Socket

sharp-iqa

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sharp-iqa

Image quality assessment utility for sharp. Now only MSE and PSNR.

latest
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

Image quality assessment utility for sharp.

  • MSE .mse
  • PSNR .psnr

Future

  • SSIM

Sample

Use exported SharpIQA.sharp because different sharp version maybe get segmentation fault.

const SharpIQA = require('sharp-iqa')

(async() {
  const psnr = await SharpIQA.psnr(SharpIQA.sharp('path/image1.png'), SharpIQA.sharp('path/image2.png'))
  console.log(psnr)
})()

FAQs

Package last updated on 21 Sep 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts