Last winter I did some greyscale image subtraction using IM (Windows command line box) and wrote down the commands I used.
They worked as expected and output the difference image.
This week I can't make the commands function as expected: I get two files named File-0.jpg and File-1.jpg
Example:
>convert Gray1.jpg Gray2.jpg -compose difference Outfile.jpg
Creates two images: Outfile-0.jpg and Outfile-1.jpg and they look just like the original two images.
What is going on here?
Thanks for any insight on how to get the difference between two images.
Deane
Why two output files?
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Why two output files?
You did not write the command down fully. You left off the -composite. Try
see http://www.imagemagick.org/Usage/compose/#compose
Code: Select all
convert Gray1.jpg Gray2.jpg -compose difference -composite Outfile.jpg