Code: Select all
@echo off
title = gif watermarking tool
goto :start
:start
SET FIRST=C:\Users\fff\Desktop\gifs
SET SECOND=C:\Users\fff\Desktop\gifs2
for /F "usebackq" %%F in (`dir /b %FIRST%\*.gif`) do (magick convert %%F -coalesce -gravity SouthEast -geometry +0+0 null: watermark.png -layers composite -layers optimize %SECOND%\%%~nxF)
pause
convert: unable to open image 'giphy.gif': No such file or directory @ error/blob.c/OpenBlob/2695.
convert: unable to open image 'watermark.png': No such file or directory @ error/blob.c/OpenBlob/2695.
convert: unable to open file `watermark.png' @ error/png.c/ReadPNGImage/3978.
convert: missing Null Image List Separator layers Composite @ error/mogrify.c/MogrifyImageList/8428.
Anyone know how I can resolve this problem?