is-printable
v0.0.0
Published
check image resolution to ensure printing quality
Downloads
7
Readme
isPrintable
Is the image big enough to be printed?
Example
var isPrintable = require('../index');
var fs = require('fs');
var path = require('path');
fs.readdir(__dirname, function(err, files){
files.forEach(function (file) {
if(path.extname(file) === '.jpg') {
isPrintable(__dirname + '/' + file, [7.8, 9.8], function (err, result) {
if(err) throw new Error(err);
if(result === true) {
console.log(file + " is good to print.");
} else {
console.log(file + " is not good enough to be printed");
}
});
}
})
})