% 빼고 center crop
2016.10.22 20:43
set /a width = 128 * %1 / (100-%1)
set /a rwidth= 25600 / (100-%1)
: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"
c:\imagemagick\convert.exe -resize %rwidth%x%rwidth% "%%f" "%%f"
c:\imagemagick\convert.exe -crop 256x256+%width%+%width% "%%f" "%%f"
)
for /D %%d in (*) do (
cd %%d
call :treeProcess
cd ..
)
exit /b
댓글 0
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
304 | http://whria.co.kr | 한승석 | 2003.02.04 | 2057 |
303 | 방문자수 T.T | 한승석 | 2003.02.03 | 2085 |
302 | 점점 변해가는 당직실 | 한승석 | 2003.02.03 | 2116 |
301 | 오늘 할일 | 한승석 | 2003.02.03 | 2082 |
300 | 목욕 | 한승석 | 2003.02.03 | 2076 |
299 | WHRIA 란 ?? | 한승석 | 2003.02.03 | 2080 |
298 | 가족 | 한승석 | 2003.02.03 | 2064 |
297 | Anti-Sore Position | 한승석 | 2003.02.02 | 2137 |
296 | 홈에 카운터를 다시 달았습다. | 한승석 | 2003.02.02 | 2066 |
295 | 햏자 | 한승석 | 2003.02.02 | 2071 |
294 | 내과 | 한승석 | 2003.02.02 | 2757 |
293 | 로고를 만들었습니다. | 한승석 | 2003.02.01 | 2082 |
292 | Re: 잠깐 방문해서 글남긴다... | 한승석 | 2003.02.01 | 2078 |
291 | 우와 정말로 한라병원 사람 없당 | 한승석 | 2003.02.01 | 2088 |
290 | 잠깐 방문해서 글남긴다... | 박일우 | 2003.02.01 | 2069 |