small change to output name and case change

This commit is contained in:
2025-08-09 16:42:46 +02:00
parent 3b2d384dfd
commit 4981d90337
+2 -2
View File
@@ -24,7 +24,7 @@ IF "%~1" == "--help" GOTO :help_message
:: Assign input and output
SET input="%~1"
SET output=%~dpn1
SET output=%~n1
:: Validate input file
IF NOT EXIST %input% (
@@ -79,7 +79,7 @@ GOTO :safchek
:safchek
:: Validate output file extension
echo %filetype% | findstr /r "\<gif\> \<png\> \<apng\> \<webp\>" >nul
ECHO %filetype% | FINDSTR /R "\<gif\> \<png\> \<apng\> \<webp\>" >nul
IF %errorlevel% NEQ 0 (
ECHO %RED%Not a valid file type: %filetype%%OFF%
GOTO :EOF