% 빼고 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
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
» | % 빼고 center crop | WHRIA | 2016.10.22 | 329 |
303 | nvidia dali [1] | WHRIA | 2020.08.01 | 329 |
302 | 민원24 프린터제한을 우회하거나 PDF 로 저장하는 방법 | WHRIA | 2015.07.12 | 320 |
301 | good luck ! | WHRIA | 2019.03.21 | 315 |
300 | asyncio | WHRIA | 2020.07.23 | 309 |
299 | mariaDB cache 설정 | WHRIA | 2019.08.04 | 283 |
298 | 계속 실행시키기 nohup & | WHRIA | 2017.05.29 | 280 |
297 | ambient-light-sensor | WHRIA | 2018.09.29 | 279 |
296 | naver rexnet clova AI [1] | WHRIA | 2020.07.04 | 268 |
295 | GPT2 [1] | WHRIA | 2020.08.03 | 262 |
294 | R graph | WHRIA | 2019.12.29 | 244 |
293 | FTC [1] | WHRIA | 2020.07.28 | 243 |
292 | 32 bit UEFI [6] | WHRIA | 2020.12.24 | 236 |
291 | 시거잭 퓨즈 교체 [2] | WHRIA | 2016.01.14 | 228 |
290 | pytorch object detect / retinanet | WHRIA | 2019.12.22 | 226 |