% 빼고 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
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
1519 | 오늘 할일 | 한승석 | 2003.02.03 | 2093 |
1518 | 점점 변해가는 당직실 | 한승석 | 2003.02.03 | 2120 |
1517 | 방문자수 T.T | 한승석 | 2003.02.03 | 2088 |
1516 | http://whria.co.kr | 한승석 | 2003.02.04 | 2060 |
1515 | 간호사와 전쟁 | 한승석 | 2003.02.04 | 2022 |
1514 | 곽호중 | 한승석 | 2003.02.04 | 2100 |
1513 | 피부관리 | 한승석 | 2003.02.04 | 2094 |
1512 | SONY VAIO U1 | 한승석 | 2003.02.04 | 2089 |
1511 | 가정식백반 | 한승석 | 2003.02.04 | 2094 |
1510 | 잠 못자는 당직 | 한승석 | 2003.02.05 | 2089 |
1509 | 으아 졸리다... | 한승석 | 2003.02.05 | 2107 |
1508 | ㅋ ㅑ-~ㄱ 서방님이다.. | 서방님 | 2003.02.05 | 2159 |
1507 | 승석이 여자친구.... | 서방님 | 2003.02.05 | 2110 |
1506 | 승석이 여자친구2.. | 서방님 | 2003.02.05 | 2096 |
1505 | 으흑!! | 서방님 | 2003.02.05 | 2233 |