Check the quality of an image for defects including blur, under-exposure, over-exposure and low contrast.
npm install image-checkerCheck the quality of an image for defects including blur, under-exposure, over-exposure and low contrast.
Can be used via node.js as a command line tool or as a library.
image-checker is in _very early_ stages of development (Windows, Linux Ubuntu) following semantic versioning.
Please come back later!












Node.js seems to lack a library that indicates the quality of an image.
Hopefully using this library/cli, you can save some time spent on manually inspecting photos!
- Node 8.11.3 or higher
- library to give quality measurements of a given image
- also can be used as CLI (command line tool)
- gives a score for the following quality measures:
- blurring (via edge width detection)
- under exposure (via histogram)
- over exposure (via histogram)
- low contrast (via histogram)
faces:
- face alignment (e.g. are eyes horizontal)
- Face not centered
- Face out of frame
- Faces detected, but no strong sentiment
printing:
- dpi not high enough for A4 or photo print
- check exif for presence of sRGB
Install:
- Yarn
- Node 8.3.11 (or higher)
#### 3 ways to run
You can run image-checker in one of three ways:
- a) as a globally installed command line tool (this is the easiest way)
- OR b) as an npm package inside an npm project
- OR c) from the source code
##### a) install globally as a command line tool
npm i -g image-checker@latest --production
On Ubuntu, you may need administrator permissions via sudo:
sudo npm i -g image-checker@latest --production
To use:
image-checker
##### OR b) from the npm package
Install inside your npm project:
yarn add image-checker
via bash script:
node_modules/image-checker/dist/lib/cli.js
OR via node:
node node_modules/image-checker/dist/lib/main
##### OR c) from the source code
```
yarn
_On Windows: use a bash shell like git bash._
To test your installation:
``
./test.sh
To check your images:
``
./go.sh
example:
``
./go.sh ../myPhotos/photo-1.jpg
To see more detailed usage info:
``
./go.sh
Install inside your npm project:
yarn add image-checker
Then in TypeScript, you can import the library:
`ts``
import * as ic from "image-checker";
// TODO xxx
For a working example, see the library test harness.
| site | URL |
| -------------------- | ------------------------------------------- |
| source code (github) | https://github.com/mrseanryan/image-checker |
| github page | https://mrseanryan.github.io/image-checker/ |
| npm | https://www.npmjs.com/package/image-checker |
see the contributing readme.
This project is based on the excellent seeder project typescript-library-starter.
Original work by Sean Ryan - mr.sean.ryan(at gmail.com)
This project is licensed under the MIT License - see the LICENSE file for details