% 빼고 center crop
2016.10.22 20: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
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
1714 | MDR - PL | WHRIA | 2023.05.11 | 72 |
1713 | 언어 , 국가 | WHRIA | 2023.04.15 | 117 |
1712 | cloudfront | WHRIA | 2023.04.09 | 57 |
1711 | 원격 진료 | WHRIA | 2023.03.23 | 87 |
1710 | AI papers [6] | WHRIA | 2023.03.02 | 80 |
1709 | gpt2 | WHRIA | 2023.02.21 | 394 |
1708 | rsynccp | WHRIA | 2023.02.20 | 74 |
1707 | disk error | WHRIA | 2023.02.16 | 58 |
1706 | 정량화 논문들 | WHRIA | 2023.02.16 | 69 |
1705 | chat GPT | WHRIA | 2023.02.16 | 72 |
1704 | Google vs Microsoft: The good, bad, and ugly of the AI arms race | WHRIA | 2023.02.14 | 169 |
1703 | insync | WHRIA | 2023.02.09 | 58 |
1702 | indexeddb [2] | WHRIA | 2021.02.07 | 138 |
1701 | CORS | WHRIA | 2021.01.22 | 166 |
1700 | popup | WHRIA | 2020.12.31 | 121 |