% 빼고 center crop
2016.10.22 21: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
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
1624 | batch normalize | WHRIA | 2020.02.07 | 71 |
1623 | exif remove | WHRIA | 2020.01.28 | 69 |
1622 | nvidia docker | WHRIA | 2020.01.15 | 74 |
1621 | lvm 축소 확장 [4] | WHRIA | 2020.01.14 | 108 |
1620 | xml json pascal [4] | WHRIA | 2020.01.12 | 118 |
1619 | nvidia caffe | WHRIA | 2020.01.12 | 72 |
1618 | retinanet nvidia [3] | WHRIA | 2020.01.12 | 95 |
1617 | lvm [2] | WHRIA | 2020.01.09 | 75 |
1616 | usb 3.1 + DP | WHRIA | 2020.01.07 | 184 |
1615 | raid 6 rebuild | WHRIA | 2020.01.07 | 86 |
1614 | add extra raid disk | WHRIA | 2020.01.05 | 121 |
1613 | 참고 또 참고 | WHRIA | 2020.01.04 | 101 |
1612 | R graph | WHRIA | 2019.12.29 | 265 |
1611 | melanoma awareness [1] | WHRIA | 2019.12.27 | 74 |
1610 | 윈도우 raid ahci 전환 | WHRIA | 2019.12.26 | 92 |