gm icon indicating copy to clipboard operation
gm copied to clipboard

Compare: add `metric` param to gm.CompareOptions

Open htho opened this issue 4 years ago • 0 comments

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";
    }

htho avatar Jun 11 '21 07:06 htho