% 빼고 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
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
1641 | mysql 암호화 [2] | WHRIA | 2020.04.24 | 45 |
1640 | php 세션 로그인 | WHRIA | 2020.04.24 | 57 |
1639 | image encryption [1] | WHRIA | 2020.04.24 | 66 |
1638 | zerohq encryption [5] | WHRIA | 2020.04.23 | 44 |
1637 | 의료영상분석장치 분류 코드 | WHRIA | 2020.04.22 | 35 |
1636 | 회귀분석 종류 | WHRIA | 2020.04.14 | 39 |
1635 | fcitx | WHRIA | 2020.04.05 | 32 |
1634 | chatbot | WHRIA | 2020.04.03 | 34 |
1633 | kernel load | WHRIA | 2020.04.03 | 33 |
1632 | plum | WHRIA | 2020.04.03 | 38 |
1631 | zmq async client server [1] | WHRIA | 2020.03.12 | 62 |
1630 | CIDR 표기법 [1] | WHRIA | 2020.03.12 | 45 |
1629 | multiple NIC ubuntu [6] | WHRIA | 2020.03.10 | 43 |
1628 | calendar javascript dropdown | WHRIA | 2020.03.01 | 36 |
1627 | sql replication 성공 [1] | WHRIA | 2020.02.20 | 40 |