% 빼고 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 | 내게 현재 필요한 것 | WHRIA | 2007.06.26 | 4088 |
303 | 재미있는 핸드폰 문자 모음.(뜨는데 오래걸림) | 한승석 | 2000.08.15 | 4095 |
302 | 무념 무상 | WHRIA | 2007.05.25 | 4108 |
301 | 비천무는 잼있다! | 채영광 | 2000.07.16 | 4119 |
300 | 잠 | WHRIA | 2007.06.06 | 4145 |
299 | 넘 멋있습니다..^^ | 어느예과후배 | 2000.06.11 | 4147 |
298 | (``); | 송어진 | 2000.09.03 | 4165 |
297 | 칭찬 | WHRIA | 2007.05.20 | 4183 |
296 | 능동적인 삶 | WHRIA | 2007.05.31 | 4217 |
295 | 승석아 답변 줘 | 채영광 | 2000.08.29 | 4261 |
294 | sample size | WHRIA | 2020.10.13 | 4262 |
293 | 삼익회 | WHRIA | 2007.05.20 | 4265 |
292 | 졸리다 | han | 2007.07.26 | 4279 |
291 | 답답 답답 [1] | WHRIA | 2007.06.07 | 4291 |
290 | 완벽하다고 봐...내 사진만 없는 거 빼면 | guesswho? | 2000.06.12 | 4310 |