% 빼고 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
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
1521 | 오랜만에 글을 남김 | WHRIA | 2012.01.18 | 6872 |
1520 | 법인 설립 | WHRIA | 2008.10.04 | 6820 |
1519 | viber 를 써보니 | WHRIA | 2012.01.23 | 6793 |
1518 | 미남계 미녀계 | WHRIA | 2007.07.06 | 6784 |
1517 | 온몸이 쑤심 | WHRIA | 2007.07.01 | 6748 |
1516 | spirit | WHRIA | 2007.08.27 | 6719 |
1515 | 지갑 바꾸다. | WHRIA | 2007.07.17 | 6691 |
1514 | Medieye Release 2.0.8.7 [1] | WHRIA | 2007.08.16 | 6678 |
1513 | 배구반 | WHRIA | 2007.07.02 | 6671 |
1512 | Let's get start | WHRIA | 2007.08.06 | 6669 |
1511 | 선택과 집중 | WHRIA | 2007.06.24 | 6653 |
1510 | 오늘부터 조금씩 보인다. | WHRIA | 2007.07.29 | 6554 |
1509 | Dream and Success | WHRIA | 2007.08.03 | 6499 |
1508 | 우울 | WHRIA | 2007.07.03 | 6495 |
1507 | modprobe | WHRIA | 2020.06.29 | 6432 |