이미지를 정사각형으로 만드는 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
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
1641 | 이사 감사 3년 변경등기 | WHRIA | 2015.12.02 | 56 |
1640 | sqlite to mysql | WHRIA | 2016.10.18 | 57 |
1639 | lvm 축소 확장 [4] | WHRIA | 2020.01.13 | 57 |
1638 | php 세션 로그인 | WHRIA | 2020.04.24 | 57 |
1637 | bay trail ubuntu 20.04 [1] | WHRIA | 2020.12.24 | 57 |
1636 | 저녁 10시에 자동 종료 스크립트 | WHRIA | 2016.06.25 | 59 |
1635 | swap memory | WHRIA | 2019.03.14 | 59 |
1634 | 정량화 논문들 | WHRIA | 2023.02.16 | 60 |
1633 | sroc [1] | WHRIA | 2020.12.10 | 61 |
1632 | zmq async client server [1] | WHRIA | 2020.03.12 | 62 |
1631 | chat GPT | WHRIA | 2023.02.16 | 62 |
1630 | LG 글로벌 | WHRIA | 2019.01.31 | 63 |
1629 | 원격 진료 | WHRIA | 2023.03.23 | 63 |
1628 | 드리블 | WHRIA | 2019.04.12 | 64 |
1627 | xml json pascal [4] | WHRIA | 2020.01.12 | 64 |