thanks for such a quick response!
i used your script and it did do work somewhat but i ran into issues when trying more than one image
see below what happened when script is being run
Code: Select all
C:\Program Files (x86)\ImageMagick>test.bat
C:\Program Files (x86)\ImageMagick>set INDIR=D:\test
C:\Program Files (x86)\ImageMagick>set OUTDIR=D:\complete
C:\Program Files (x86)\ImageMagick>for /F "usebackq" %F in (`dir /b D:\test\*.gif`) do (convert %F -coalesce -gravity SouthWest -geometry +0+0 null: watermark.png -layers composite -layers optimize D:\complete\%~nxF )
C:\Program Files (x86)\ImageMagick>(convert 555.gif -coalesce -gravity SouthWest -geometry +0+0 null: watermark.png -layers composite -layers optimize D:\complete\555.gif )
C:\Program Files (x86)\ImageMagick>(convert fdsfsd.gif -coalesce -gravity SouthWest -geometry +0+0 null: watermark.png -layers composite -layers optimize D:\complete\fdsfsd.gif ) convert.exe: unable to open image `fdsfsd.gif': No such file or directory @ error/blob.c/OpenBlob/2658. convert.exe: Missing Null Image List Separator layers Composite @ error/mogrify. c/MogrifyImageList/8234.
I can see it says "unable to open image" but the image is there, it works if i remove the image called 555.gif and only have fdsfsd.gif in the folder, any ideas?
EDIT: On further testing watermarking test.gif and fdsfsd.gif works in batch, i have no idea why... but when i added more gifs to the indir folder they give same error, i've checked the file permissions and they all seem ok, could it be the windows UAC that somehow is messing up? Perhaps i should try on a windows 7 machine or do you have any ideas what could be causing this?
Thanks very much for your assistance!