I pulled the code directly from here, and it works perfectly well if I manually enter the file name, but as soon as I try using a for loop, i get a "-compose was unexpected at this time" error.
The code I'm getting this error with is as follows:
Code: Select all
for %%f in (*.png) do (
convert "%%f" ^
( +clone -alpha extract ^
-draw "fill black polygon 0,0 0,15 15,0 fill white circle 15,15 15,0" ^
( +clone -flip ) -compose Multiply -composite ^
( +clone -flop ) -compose Multiply -composite ) ^
-alpha off -compose CopyOpacity -composite "%%f"
)