Skip to content

Commit

Permalink
Move impact in .before before scaling
Browse files Browse the repository at this point in the history
  • Loading branch information
okorach committed Jan 27, 2024
1 parent 80544b1 commit ef6d69a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions batch-files/scale.bat
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,7 @@
setlocal enabledelayedexpansion
set /p scale=Max size ?:
for %%F in (%*) do (
E:\Tools\ffmpeg\bin\ffmpeg -i "%%~F" -vf scale=%scale%:-1 "%%~F-%scale%.jpg"
)
ren "%%~F" "%%~nxF.before-scale.jpg"
E:\Tools\ffmpeg\bin\ffmpeg -i "%%~F.before-scale.jpg" -vf scale=%scale%:-1 "%%~F"
)
pause

0 comments on commit ef6d69a

Please sign in to comment.