Skip to content

이미지를 정사각형으로 만드는 batch

2016.10.22 21:12

WHRIA 조회 수:1177

@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

번호 제목 글쓴이 날짜 조회 수
1521 linux swap file add WHRIA 2017.05.28 3543
1520 bash 문자열 WHRIA 2017.02.13 507
1519 JAMA WHRIA 2017.02.11 633
1518 windows faster rcnn WHRIA 2017.02.10 4694
1517 inception WHRIA 2017.01.23 7188
1516 fast rcnn WHRIA 2017.01.08 107
1515 fast rcnn cudnn 5.0 WHRIA 2017.01.08 128
1514 jquery java WHRIA 2016.12.13 1751
1513 % 빼고 center crop WHRIA 2016.10.22 297
» 이미지를 정사각형으로 만드는 batch WHRIA 2016.10.22 1177
1511 이미지 size 줄이는 batch WHRIA 2016.10.19 71
1510 caffe WHRIA 2016.10.19 106
1509 sqlite to mysql WHRIA 2016.10.18 57
1508 KMA 연수교육 주소 WHRIA 2016.10.05 99
1507 . WHRIA 2016.10.01 81

Powered by Xpress Engine / Designed by Sketchbook

sketchbook5, 스케치북5

sketchbook5, 스케치북5

나눔글꼴 설치 안내


이 PC에는 나눔글꼴이 설치되어 있지 않습니다.

이 사이트를 나눔글꼴로 보기 위해서는
나눔글꼴을 설치해야 합니다.

설치 취소