perceptualdiff
Advanced tools
Comparing version 1.3.14 to 1.3.15
@@ -0,1 +1,2 @@ | ||
#!/usr/bin/env node | ||
/* | ||
@@ -23,2 +24,3 @@ PerceptualDiff - a program that compares two images using a perceptual metric | ||
*/ | ||
var PerceptualDiff = require('./../perceptualdiff.js'); | ||
@@ -88,3 +90,3 @@ | ||
console.log(" --color-factor How much of color to use [0.0, 1.0] (default: 1.0)"); | ||
console.log(" --scale Scale images to match each other's dimensions"); | ||
console.log(" --scale Scale images to match each others dimensions"); | ||
console.log(" --sum-errors Print a sum of the luminance and color differences"); | ||
@@ -117,3 +119,3 @@ console.log(" --output o Write difference to the file o"); | ||
if (optionMatches(argv[i], "help")) { | ||
print_help(); | ||
printHelp(); | ||
process.exit(0); | ||
@@ -199,3 +201,3 @@ } | ||
else if (optionMatches(argv[i], "version")) { | ||
console.log("perceptualdiff " + VERSION); | ||
console.log("perceptualdiff " + PerceptualDiff.version); | ||
} | ||
@@ -202,0 +204,0 @@ else if (imageCount < 2) { |
{ | ||
"name": "perceptualdiff", | ||
"version": "1.3.14", | ||
"version": "1.3.15", | ||
"description": "A port of the perceptualdiff image comparison (pdiff.sourceforge.net), and adding some additional features", | ||
@@ -5,0 +5,0 @@ "license": "GPL-2.0", |
@@ -86,3 +86,3 @@ /* | ||
this.outputMaskOpacity = 0.7; | ||
this.outputMaskOpacity = options.outputMaskOpacity || 0.7; | ||
@@ -401,4 +401,4 @@ this.quick = options.quick || false; | ||
PerceptualDiff.version = "1.3.14"; | ||
PerceptualDiff.version = "1.3.15"; | ||
module.exports = PerceptualDiff; |
@@ -37,3 +37,3 @@ node-perceptualdiff | ||
--color-factor How much of color to use [0.0, 1.0] (default: 1.0) | ||
--scale Scale images to match each other's dimensions | ||
--scale Scale images to match each others dimensions | ||
--sum-errors Print a sum of the luminance and color differences | ||
@@ -104,7 +104,8 @@ --output o Write difference to the file o | ||
* ```pyramidLevels``` Number of levels of Laplacian pyramids. (default: 3) | ||
* ```scale``` Scale images to match each other's dimensions (default: false) | ||
* ```scale``` Scale images to match each others dimensions (default: false) | ||
* ```outputMaskRed``` Red intensity for the difference highlighting in the output file (default: 255 - full red) | ||
* ```outputMaskGreen``` Green intensity for the difference highlighting in the output file (default: 0) | ||
* ```outputMaskBlue``` Blue intensity for the difference highlighting in the output file (default: 0) | ||
* ```outputMaskAlpha``` Alpha intensity for the difference highlighting in the output file (default: 180 - slightly transparent) | ||
* ```outputMaskAlpha``` Alpha intensity for the difference highlighting in the output file (default: 255) | ||
* ```outputMaskOpacity``` Opacity of the pixel for the difference highlighting in the output file (default: 0.7 - slightly transparent) | ||
* ```outputBackgroundRed``` Red intensity for the background in the output file (default: 0) | ||
@@ -114,2 +115,4 @@ * ```outputBackgroundGreen``` Green intensity for the background in the output file (default: 0) | ||
* ```outputBackgroundAlpha``` Alpha intensity for the background in the output file (default: 0 - transparent) | ||
* ```copyImageAToOutput``` Copies the first image to the output image before the comparison begins. This will make sure that the output image will highlight the differences on the first image. | ||
* ```copyImageBToOutput``` Copies the second image to the output image before the comparison begins. This will make sure that the output image will highlight the differences on the second image. | ||
@@ -119,3 +122,3 @@ | ||
By default, the class logs to the console.log, but you can overwrite this behavior by overwriting ```diff.log```: | ||
By default, the logger doesn't log events anywhere, but you can overwrite this behavior by overwriting ```PerceptualDiff.log```: | ||
@@ -122,0 +125,0 @@ ```JavaScript |
5925122
708
154