% 빼고 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 | Re: [TIP] 유동 IP 로 서버 만드는 법 | 애국자 | 2001.03.29 | 2165 |
1623 | ^^*v 저 또 왔어요 | Schauberger | 2001.03.30 | 2083 |
1622 | 노 벨 | 채영광 | 2001.04.04 | 2098 |
1621 | Re: ^^*v 저 또 왔어요 | 한승석 | 2001.04.07 | 2004 |
1620 | congratulation!! | soma | 2001.04.07 | 2121 |
1619 | 들렸다가오... | 기갑형 | 2001.04.14 | 2083 |
1618 | 의석아 너 사진이다. | 한승석 | 2001.04.20 | 2114 |
1617 | Iczelion | 한승석 | 2001.04.21 | 2088 |
1616 | ^^*v 호호 | Schauberger | 2001.04.24 | 2075 |
1615 | 봄기운 | 김다솜 | 2001.05.14 | 2076 |
1614 | 프리 되는 레지스트리 | .. | 2001.05.23 | 2082 |
1613 | 정식 | .. | 2001.05.23 | 2073 |
1612 | 달리기 | 김다솜 | 2001.06.01 | 2373 |
1611 | 퀴즈하나 !! | schauberger | 2001.06.09 | 2078 |
1610 | Re: 퀴즈하나 !! | 한승석 | 2001.06.12 | 2076 |