% 빼고 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 | 테스트 | WHRIA | 2008.04.17 | 6897 |
1623 | viber 를 써보니 | WHRIA | 2012.01.23 | 6861 |
1622 | 법인 설립 | WHRIA | 2008.10.04 | 6838 |
1621 | 미남계 미녀계 | WHRIA | 2007.07.06 | 6808 |
1620 | spirit | WHRIA | 2007.08.27 | 6788 |
1619 | 온몸이 쑤심 | WHRIA | 2007.07.01 | 6777 |
1618 | 지갑 바꾸다. | WHRIA | 2007.07.17 | 6708 |
1617 | Medieye Release 2.0.8.7 [1] | WHRIA | 2007.08.16 | 6700 |
1616 | 배구반 | WHRIA | 2007.07.02 | 6699 |
1615 | Let's get start | WHRIA | 2007.08.06 | 6690 |
1614 | 선택과 집중 | WHRIA | 2007.06.24 | 6682 |
1613 | 오늘부터 조금씩 보인다. | WHRIA | 2007.07.29 | 6600 |
1612 | 우울 | WHRIA | 2007.07.03 | 6523 |
1611 | Dream and Success | WHRIA | 2007.08.03 | 6522 |
1610 | modprobe | WHRIA | 2020.06.29 | 6466 |