gm
gm copied to clipboard
Compare: add `metric` param to gm.CompareOptions
I'd like to have more control over the way images are compared.
The metric parameter could easily be added to gm.CompareOptions.
http://www.graphicsmagick.org/compare.html
interface CompareOptions {
file?: string;
highlightColor?: string;
highlightStyle?: HighlightStyle;
tolerance?: number;
metric?: "mae" | "mse" | "pae" | "psnr" | "rmse";
}