이미지를 정사각형으로 만드는 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
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
1594 | 하도 운동을 안했더니.. | WHRIA | 2016.06.10 | 84 |
1593 | 반환되는 회원권 세무처리 [1] | WHRIA | 2015.10.26 | 85 |
1592 | 서버 업그레이드 하다. [1] | WHRIA | 2016.04.29 | 85 |
1591 | 인구구조 | WHRIA | 2016.06.05 | 85 |
1590 | 콘탱고 백워데이션 | WHRIA | 2016.06.10 | 87 |
1589 | 인생무상 | WHRIA | 2016.01.18 | 89 |
1588 | scx 4623f reset / memory [2] | WHRIA | 2016.01.23 | 89 |
1587 | t test | WHRIA | 2019.02.13 | 90 |
1586 | 오랜만에 쓰다. | WHRIA | 2015.06.26 | 91 |
1585 | open new mate terminal | WHRIA | 2019.08.11 | 92 |
1584 | dkms for r8125 | WHRIA | 2020.11.12 | 96 |
1583 | 이미지 비교 [1] | WHRIA | 2019.04.23 | 97 |
1582 | 윈도우 파일 검색 옵션 | WHRIA | 2019.06.14 | 97 |
1581 | MS bot framework [3] | WHRIA | 2020.06.13 | 99 |
1580 | file lock | WHRIA | 2020.09.22 | 99 |