% 빼고 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
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
1714 | 다시 이곳으로... | WHRIA | 2024.03.02 | 23 |
1713 | Dutch - Nederlands | WHRIA | 2024.05.24 | 24 |
1712 | headless PC 를 위한 dummy plug in 을 구입해서 달다. | WHRIA | 2015.11.22 | 27 |
1711 | Filipino - Filipino | WHRIA | 2024.05.24 | 27 |
1710 |
USB 에뮬레이션 램디스트 imdisk
![]() | WHRIA | 2016.09.02 | 37 |
1709 | calendar javascript dropdown | WHRIA | 2020.03.01 | 39 |
1708 | imbalanced dataset | WHRIA | 2018.12.26 | 43 |
1707 | exif remove | WHRIA | 2020.01.28 | 44 |
1706 | 회귀분석 종류 | WHRIA | 2020.04.14 | 44 |
1705 | kaggle leakage | WHRIA | 2019.12.19 | 45 |
1704 | onnx broswer | WHRIA | 2020.09.15 | 45 |
1703 | XE 에 tinymce 에디터를 달다. | WHRIA | 2015.11.22 | 46 |
1702 | letencrypt - win | WHRIA | 2018.08.12 | 46 |
1701 | lvm [2] | WHRIA | 2020.01.09 | 46 |
1700 | kernel load | WHRIA | 2020.04.03 | 46 |