To overlay a logo in an image, I can use:
magick background.jpg logo.jpg -composite output.jpg
However, I don't know how to use this in batch. From What's the equivalent of xargs in PowerShell?, my try is:
,@(gci -recurse -file) | %{magick $_ ..\logo.png -composite output%d.png}
But it only produce one output output0.png
which seems to be a -composite
of all the images in the folder, not a list of new outputs which combine each image in the folder with the logo image.
This still works:
,@(gci -recurse -file) | %{Copy-Item $_ ..}