% 빼고 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 | fcitx | WHRIA | 2020.04.05 | 32 |
1700 | kernel load | WHRIA | 2020.04.03 | 33 |
1699 | CE | WHRIA | 2020.05.17 | 33 |
1698 | letencrypt - win | WHRIA | 2018.08.12 | 34 |
1697 | exif remove | WHRIA | 2020.01.28 | 34 |
1696 | chatbot | WHRIA | 2020.04.03 | 34 |
1695 | git 특정 버젼 | WHRIA | 2020.07.11 | 34 |
1694 | 감가상각 계산 | WHRIA | 2015.11.30 | 35 |
1693 | kaggle leakage | WHRIA | 2019.12.19 | 35 |
1692 | raid 6 rebuild | WHRIA | 2020.01.07 | 35 |
1691 | 의료영상분석장치 분류 코드 | WHRIA | 2020.04.22 | 35 |
1690 | conflict of interest | WHRIA | 2020.05.03 | 35 |
1689 | calendar javascript dropdown | WHRIA | 2020.03.01 | 36 |
1688 | 너무도 많이 변해버린 c++ | WHRIA | 2016.08.15 | 37 |
1687 | pytorch - caffe | WHRIA | 2019.12.19 | 37 |