Loop and increase the number in mpr:list
Posted: 2019-05-09T01:37:42-07:00
Hello, I'm using this code
to create a list to and extract the differences between lossless .png [0] & [1], [0] & [2], [0] & [3] ....The problem is, I don't know how to loop and change the number in mpr:list[1] to [2], [3],.... Is there any code or cmdl ine to do that? (Sry for my English)
Example:
#0
#1
#2
Output of #1 and #2:
Can anyone help me with this? Thank you very much
I'm using IM 7.0.8-44 x64 on Win10.
Code: Select all
magick *.png -write mpr:list -delete 0--1 mpr:list[1] mpr:list[0] -alpha off +repage ( -clone 0 -clone 1 -compose difference -composite -threshold 0 ) ( -clone 0 -clone 2 -compose multiply -composite ) -delete 0,1 +swap -alpha off -compose copy_opacity -composite +repage %.png
to create a list to and extract the differences between lossless .png [0] & [1], [0] & [2], [0] & [3] ....The problem is, I don't know how to loop and change the number in mpr:list[1] to [2], [3],.... Is there any code or cmdl ine to do that? (Sry for my English)
Example:
#0
#1
#2
Output of #1 and #2:
Can anyone help me with this? Thank you very much
I'm using IM 7.0.8-44 x64 on Win10.