Page 1 of 1
What does the "-compare" option do?
Posted: Tue Feb 02, 2021 4:30 pm
by XnTriq
nconvert.exe -help wrote:Code: Select all
-compare filename method : Compare with this image, method (red, red_only)
Re: What does the "-compare" option do?
Posted: Wed Feb 03, 2021 7:09 am
by xnview
output pixels difference between 2 images (need to be same size)
Re: What does the "-compare" option do?
Posted: Wed Feb 03, 2021 10:30 am
by XnTriq
xnview wrote: Wed Feb 03, 2021 7:09 amoutput pixels difference between 2 images (need to be same size)

I was hoping for something like this to be implemented, but I can't get it to work.
How do I tell nConvert to compare (the blue channels of) two images (
original.png +
edited.png)?
Code: Select all
nconvert.exe -compare edited.png original.png
Could you please give me an example illustrating the purpose of the
method argument and what values (red/green/bue? red_only/green_only/blue_only/alpha_only?) are accepted as parameters?
Re: What does the "-compare" option do?
Posted: Wed Feb 03, 2021 10:39 am
by xnview
you can try
Code: Select all
nconvert.exe -compare edited.png red original.png
only red/red_only as parameters
Re: What does the "-compare" option do?
Posted: Wed Feb 03, 2021 4:30 pm
by XnTriq
xnview wrote: Wed Feb 03, 2021 10:39 amyou can try
Code: Select all
nconvert.exe -compare edited.png red original.png
only red/red_only as parameters
Thanks, Pierre!

- www.cambridgeincolour.com/tutorials/bit-depth.htm
- test.png (72.62 KiB) Viewed 3013 times

- nconvert.exe -out jpeg -q 100 -opthuff -dct 2 -smoothingf 0 -subsampling 2 -o test.jpg test.png
- test.jpg (94.87 KiB) Viewed 3013 times

- nconvert.exe -compare test.jpg red test.png
- nconvert_red.png (91.46 KiB) Viewed 3013 times

- nconvert.exe -compare test.jpg red_only test.png
- nconvert_redonly.png (41.61 KiB) Viewed 3013 times

- www.softpedia.com/get/Multimedia/Graphic/Graphic-Others/ImageDiff.shtml
- imagediff.png (18.93 KiB) Viewed 3013 times