% 빼고 center crop
2016.10.22 21:43
set /a width = 128 * %1 / (100-%1)
set /a rwidth= 25600 / (100-%1)
:treeProcess
rem Do whatever you want here over the files of this subdir, for example:
for %%f in (*.jpg) do (
c:\imagemagick\convert "%%f" -set option:distort:viewport "%%[fx:min(w,h)]x%%[fx:min(w,h)]+%%[fx:max((w-h)/2,0)]+%%[fx:max((h-w)/2,0)]" -filter point -distort SRT 0 +repage "%%f"
c:\imagemagick\convert.exe -resize %rwidth%x%rwidth% "%%f" "%%f"
c:\imagemagick\convert.exe -crop 256x256+%width%+%width% "%%f" "%%f"
)
for /D %%d in (*) do (
cd %%d
call :treeProcess
cd ..
)
exit /b
댓글 0
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
1804 | Tajik - тоҷикӣ | WHRIA | 2024.05.24 | 28 |
1803 | Swedish - svenska | WHRIA | 2024.05.24 | 36 |
1802 | Swahili - Kiswahili | WHRIA | 2024.05.24 | 1211 |
1801 | Sundanese - Basa Sunda | WHRIA | 2024.05.24 | 37 |
1800 | Spanish - español | WHRIA | 2024.05.24 | 45 |
1799 | Southern Sotho - Southern Sotho | WHRIA | 2024.05.24 | 32 |
1798 | Somali - Soomaali | WHRIA | 2024.05.24 | 22 |
1797 | Slovenian - slovenščina | WHRIA | 2024.05.24 | 34 |
1796 | Slovak - slovenčina | WHRIA | 2024.05.24 | 33 |
1795 | Sinhala - සිංහල | WHRIA | 2024.05.24 | 29 |
1794 | Sindhi - سنڌي | WHRIA | 2024.05.24 | 40 |
1793 | Shona - chiShona | WHRIA | 2024.05.24 | 32 |
1792 | Serbian - српски | WHRIA | 2024.05.24 | 43 |
1791 | Scottish Gaelic - Gàidhlig | WHRIA | 2024.05.24 | 22 |
1790 | Samoan - Samoan | WHRIA | 2024.05.24 | 25 |