Why two output files?

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
Deane
Posts: 7
Joined: 2015-03-06T08:08:23-07:00
Authentication code: 6789

Why two output files?

Post by Deane »

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
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Why two output files?

Post by fmw42 »

You did not write the command down fully. You left off the -composite. Try

Code: Select all

convert Gray1.jpg Gray2.jpg -compose difference -composite Outfile.jpg
see http://www.imagemagick.org/Usage/compose/#compose
Post Reply