I have a script... once a manual version and once a automatic one.
The manual version:
Code: Select all
@echo off
echo Make sure the images that have the background appended to have transparency
SET /P app=Drag and drop the image to be appended (as background):
for %%n in (*.gif) do convert -page +0+0 %app% -page +0+0 %%n -flatten %%n
pause
the automatic version:
Code: Select all
move background.png %USERPROFILE%/Desktop/
set SRC="%USERPROFILE%/Desktop/background.png"
for %%n in (*.gif) do convert -page +0+0 %app% -page +0+0 %%n -flatten %%n
Any ideas ?
This is the first time I have encoutnered such stupid problem.
EDIT:
NEVERMIND: the problem is windows related.
If I put a TIMEOUT in before the automatic one:
Code: Select all
@echo off
timeout 1 > nul
for %%n in (*.gif) do convert -page +0+0 background.png -page +0+0 %%n -flatten %%n