이미지를 정사각형으로 만드는 batch
2016.10.22 20:12
@echo off
call :treeProcess
goto :eof
: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"
)
for /D %%d in (*) do (
cd %%d
call :treeProcess
cd ..
)
exit /b
댓글 0
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
1489 | rAthena [1] | WHRIA | 2016.06.26 | 10097 |
1488 | 저녁 10시에 자동 종료 스크립트 | WHRIA | 2016.06.25 | 85 |
1487 | 역시 개원해서는 돈 버는 재미밖에 없다. | WHRIA | 2016.06.17 | 160 |
1486 | DDR-WRT IPTV | WHRIA | 2016.06.15 | 51 |
1485 | 콘탱고 백워데이션 | WHRIA | 2016.06.10 | 95 |
1484 | 하도 운동을 안했더니.. | WHRIA | 2016.06.10 | 87 |
1483 | 가끔은 시간을 돌렸으면... | WHRIA | 2016.06.09 | 100 |
1482 | 인구구조 | WHRIA | 2016.06.05 | 88 |
1481 | PHP7 으로 업그레이드 | WHRIA | 2016.05.05 | 132 |
1480 | boost 1.35 build | WHRIA | 2016.05.01 | 56 |
1479 | 서버 업그레이드 하다. [1] | WHRIA | 2016.04.29 | 96 |
1478 | 인정이자 | WHRIA | 2016.01.23 | 110 |
1477 | scx 4623f reset / memory [2] | WHRIA | 2016.01.23 | 110 |
1476 | WOL shutdown | WHRIA | 2016.01.22 | 85 |
1475 | 도움 | WHRIA | 2016.01.21 | 96 |