1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
| @echo off
Setlocal EnableDelayedExpansion
for %%f in (%*) do (
FOR /F %%k in ( 'identify.exe -format %%W %%f' ) do set Width=%%k
if !Width! GTR 1024 (
echo.
echo.------------------------------------
echo.Process: %%~nf
echo.Format: %%~xf
echo.Width: !Width!
echo.------------------------------------
echo.
if %%~xf==.jpg (
convert.exe %%f -gamma .45455 -filter Lanczos -resize 1024 -gamma 2.2 -quality 87 %%~nf%%~xf
) else (
convert.exe %%f -gamma .45455 -filter Lanczos -resize 1024 -gamma 2.2 %%~nf%%~xf
)
)
echo.done...
ping 127.0.0.0 -n 2 >nul
)
echo.
echo....................................................................
echo.
echo.....................Processing finish................................
echo.
echo....................................................................
echo.
ping 127.0.0.0 -n 3 >nul
echo.
echo Window close in 15
echo.
ping 127.0.0.0 -n 5 >nul
echo.
echo Window close in 10
echo.
ping 127.0.0.0 -n 5 >nul
echo.
echo Window close in 5
echo.
ping 127.0.0.0 -n 5 >nul
echo. |
@echo off
Setlocal EnableDelayedExpansion
for %%f in (%*) do (
FOR /F %%k in ( 'identify.exe -format %%W %%f' ) do set Width=%%k
if !Width! GTR 1024 (
echo.
echo.------------------------------------
echo.Process: %%~nf
echo.Format: %%~xf
echo.Width: !Width!
echo.------------------------------------
echo.
if %%~xf==.jpg (
convert.exe %%f -gamma .45455 -filter Lanczos -resize 1024 -gamma 2.2 -quality 87 %%~nf%%~xf
) else (
convert.exe %%f -gamma .45455 -filter Lanczos -resize 1024 -gamma 2.2 %%~nf%%~xf
)
)
echo.done...
ping 127.0.0.0 -n 2 >nul
)
echo.
echo....................................................................
echo.
echo.....................Processing finish................................
echo.
echo....................................................................
echo.
ping 127.0.0.0 -n 3 >nul
echo.
echo Window close in 15
echo.
ping 127.0.0.0 -n 5 >nul
echo.
echo Window close in 10
echo.
ping 127.0.0.0 -n 5 >nul
echo.
echo Window close in 5
echo.
ping 127.0.0.0 -n 5 >nul
echo.
Verschiedenes zu Batch, Shell, Linux, Python, ffmpeg, maxscript, 3d, rendering und vfx