% 빼고 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
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
1701 | CORS | WHRIA | 2021.01.22 | 133 |
1700 | popup | WHRIA | 2020.12.31 | 99 |
1699 | bay trail ubuntu 20.04 [1] | WHRIA | 2020.12.24 | 57 |
1698 | 32 bit UEFI [6] | WHRIA | 2020.12.24 | 205 |
1697 | sroc [1] | WHRIA | 2020.12.10 | 61 |
1696 | test | WHRIA | 2020.12.03 | 47 |
1695 | dkms for r8125 | WHRIA | 2020.11.12 | 96 |
1694 | unattended upgrade | WHRIA | 2020.11.01 | 478 |
1693 | pytorch pretrained | WHRIA | 2020.10.28 | 150 |
1692 | steamlit | WHRIA | 2020.10.15 | 211 |
1691 | sample size | WHRIA | 2020.10.13 | 4235 |
1690 | Transformer | WHRIA | 2020.10.09 | 155 |
1689 | file lock | WHRIA | 2020.09.22 | 99 |
1688 | onnx broswer | WHRIA | 2020.09.15 | 42 |
1687 | fda 인증 | WHRIA | 2020.09.03 | 213 |