이미지를 정사각형으로 만드는 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
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
319 | My Dream Car | WHRIA | 2015.01.17 | 488 |
318 | batch normalization explain | WHRIA | 2019.07.14 | 450 |
317 | Basic tutorial to develop driver on windows | WHRIA | 2019.12.07 | 446 |
316 | LG 21 세기 brain hunt - USA | WHRIA | 2019.05.23 | 437 |
315 | HASh benchmark | WHRIA | 2019.03.10 | 436 |
314 | Windows Subsystem Linux | WHRIA | 2018.01.01 | 425 |
313 | gpt2 | WHRIA | 2023.02.21 | 398 |
312 | 미래가 보이지 않는다. | WHRIA | 2017.07.01 | 367 |
311 | Keratinocytic Skin Cancer Detection on the Face Using Region-Based Convolutional Neural Network | WHRIA | 2019.12.07 | 364 |
310 | scopus [1] | WHRIA | 2020.08.02 | 355 |
309 | CNN Models | WHRIA | 2018.12.23 | 353 |
308 | python pdf writer | WHRIA | 2019.11.04 | 349 |
307 | reverse VNC | WHRIA | 2018.02.14 | 346 |
306 | IEEE Spectrum | WHRIA | 2018.02.27 | 334 |
305 | IPTV | WHRIA | 2015.11.01 | 332 |