이미지를 정사각형으로 만드는 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
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
1744 | Georgian - ქართული | WHRIA | 2024.05.24 | 0 |
1743 | Galician - galego | WHRIA | 2024.05.24 | 0 |
1742 | French - français | WHRIA | 2024.05.24 | 0 |
1741 | Finnish - suomi | WHRIA | 2024.05.24 | 0 |
1740 | Filipino - Filipino | WHRIA | 2024.05.24 | 0 |
1739 | Estonian - eesti | WHRIA | 2024.05.24 | 0 |
1738 | Esperanto - esperanto | WHRIA | 2024.05.24 | 0 |
1737 | Danish - dansk | WHRIA | 2024.05.24 | 0 |
1736 | Dutch - Nederlands | WHRIA | 2024.05.24 | 0 |
1735 | Danish - dansk | WHRIA | 2024.05.24 | 0 |
1734 | Czech - čeština | WHRIA | 2024.05.24 | 0 |
1733 | Croatian - hrvatski | WHRIA | 2024.05.24 | 0 |
1732 | Corsican - Corsican | WHRIA | 2024.05.24 | 0 |
1731 | Chinese (Taiwan) - Chinese (Taiwan) | WHRIA | 2024.05.24 | 0 |
1730 | Chinese (China) - 中文(中国) | WHRIA | 2024.05.24 | 0 |