이미지를 정사각형으로 만드는 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
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
349 | 벤츠 E300 2010 년형 터치스크린 자가 수리 | WHRIA | 2015.12.25 | 133 |
348 | 윈도 10 잠금화면 없애기 [1] | WHRIA | 2015.12.25 | 97 |
347 | 시거잭 퓨즈 교체 [2] | WHRIA | 2016.01.14 | 228 |
346 | 인생무상 | WHRIA | 2016.01.18 | 105 |
345 | 도움 | WHRIA | 2016.01.21 | 96 |
344 | WOL shutdown | WHRIA | 2016.01.22 | 83 |
343 | scx 4623f reset / memory [2] | WHRIA | 2016.01.23 | 108 |
342 | 인정이자 | WHRIA | 2016.01.23 | 110 |
341 | 서버 업그레이드 하다. [1] | WHRIA | 2016.04.29 | 94 |
340 | boost 1.35 build | WHRIA | 2016.05.01 | 54 |
339 | PHP7 으로 업그레이드 | WHRIA | 2016.05.05 | 130 |
338 | 인구구조 | WHRIA | 2016.06.05 | 87 |
337 | 가끔은 시간을 돌렸으면... | WHRIA | 2016.06.09 | 100 |
336 | 하도 운동을 안했더니.. | WHRIA | 2016.06.10 | 86 |
335 | 콘탱고 백워데이션 | WHRIA | 2016.06.10 | 94 |