How do you in from version 7?
The previous versions running compare would run compare, but now in
version 7 running compare runs compare, which throws
magick: no found for `-metricR7; at @
error/operation.c/CLIOption/5227. Please advise.

CompareCmd compare = new CompareCmd();
compare.setSearchPath(imageMagickBinPath);
compare.setErrorConsumer(StandardStream.STDERR);

IMOperation op = new IMOperation();
op.metric("AE");
op.fuzz(10.0);

op.addImage(screenShotPath1);
op.addImage(screenShotPath2);
op.addImage(imageCompareResultFile.getAbsolutePath());

    //Execute the Operation
    try {
        compare.run(op);
        isSame=true;
    } 
    catch (Exception e) 
    {
        isSame=false;
    }



Source link https://sqa.stackexchange.com/questions/34861/how-to-run-imagemagick-comparecmd-in-java-getting-error-magick-no-images-found

LEAVE A REPLY

Please enter your comment!
Please enter your name here