@echo off
setlocal enabledelayedexpansion
mkdir tmp
mkdir out
for %%f in (*.tif) do (
echo resize: %%f
magick convert %%f -resize 50%% -filter Gaussian ./tmp/_%%f
echo invert