This command works for merging 2 images into 1:
Code: Select all
magick convert "a.png" "a.tiff" -alpha off -compose CopyOpacity -composite "a.tga"
I tried this:
Code: Select all
for /r %g in (*) do magick convert "%g.png" "%g.tiff" -alpha off -compose CopyOpacity -composite "%g.tga"
I think the problem is with (*). I need to replace that * with something else but don't know what. need %g to read/write filename without extension name.