% 빼고 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 | 비천무는 잼있다! | 채영광 | 2000.07.16 | 4135 |
1518 | 무념 무상 | WHRIA | 2007.05.25 | 4108 |
1517 | 재미있는 핸드폰 문자 모음.(뜨는데 오래걸림) | 한승석 | 2000.08.15 | 4105 |
1516 | 내게 현재 필요한 것 | WHRIA | 2007.06.26 | 4091 |
1515 | Intro | WHRIA | 2018.10.01 | 4088 |
1514 | False Information [1] | han | 2005.10.01 | 4078 |
1513 | 만남 | WHRIA | 2007.05.22 | 4076 |
1512 | 꾹 참기 | WHRIA | 2007.05.09 | 4058 |
1511 | 죄송합니다. 하이텔에서 [그냥 드립니다.]에서 | 오영택 | 2000.08.23 | 4057 |
1510 | 승석아 | 재호 | 2000.08.14 | 4044 |
1509 | 장기 저축 | WHRIA | 2007.05.15 | 4039 |
1508 | 골프장지도 | WHRIA | 2013.08.16 | 4035 |
1507 | 시간 관리 | WHRIA | 2007.05.23 | 4008 |
1506 | 여행하기 좋은때.. | 하은이 | 2007.06.07 | 3990 |
1505 | 의욕상실 | 채영광 | 2000.07.13 | 3984 |