Hello.
Please tell me whether ImageMagick to compare one image with several images in the catalog.
I need to compare 9 images in the same directory with a few hundred in the other, using the command line.
I have tried so, but it does not work:
compare -metric MAE D: \ test.png D: \ testfolder null:
compare one image with the Image Directory
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: compare one image with the Image Directory
Sloneny wrote: compare -metric MAE D: \ test.png D: \ testfolder null:
You cannot compare one image to a folder of images with the compare function. It only compares two images at a time. So you would need to write a script to loop over all the images in the directory and compare each to one of your 9 images. Then repeat for each of the other 8 images.
Also you cannot have spaces in paths.
So I believe your command for any two images should be
Code: Select all
compare -metric MAE D:\test.png D:\testfolder\image1.png null: