% 빼고 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
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
1624 | windows softraid monitor | WHRIA | 2019.12.19 | 66 |
1623 | image encryption [1] | WHRIA | 2020.04.24 | 66 |
1622 | distributed training [2] | WHRIA | 2019.10.30 | 67 |
1621 | AI papers [6] | WHRIA | 2023.03.02 | 67 |
1620 | retinanet nvidia [3] | WHRIA | 2020.01.12 | 68 |
1619 | 중국 스마트 폰 | WHRIA | 2014.09.29 | 69 |
1618 | 참고 또 참고 | WHRIA | 2020.01.03 | 69 |
1617 | MDR - PL | WHRIA | 2023.05.11 | 69 |
1616 | 만기까지 끌어 올림. | WHRIA | 2016.09.30 | 70 |
1615 | pstools | WHRIA | 2016.07.31 | 72 |
1614 | 이미지 size 줄이는 batch | WHRIA | 2016.10.19 | 72 |
1613 | 서피스 문제 참고 | WHRIA | 2015.12.17 | 73 |
1612 | 넌센스 퀴즈 | WHRIA | 2016.09.04 | 75 |
1611 | mcnemar | WHRIA | 2019.11.20 | 76 |
1610 | 힘든 하루하루 | WHRIA | 2016.09.30 | 77 |