
@rem downsize <width>

@echo tw = %~1                  > "downsize-%~1.avs"
@echo Import ("downsize.avsi") >> "downsize-%~1.avs"

"C:\Program Files (x86)\FFmpeg\bin\FFmpeg.exe" -y -i "downsize-%~1.avs" -f image2 "icon%~1.png"

@del "downsize-%~1.avs"
