% 빼고 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
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
1641 | Visual Studio 에서 SVN 업로드를 위해 불필요한 파일 삭제 | WHRIA | 2013.01.13 | 8721 |
1640 | slide 메뉴 | WHRIA | 2009.01.19 | 8717 |
1639 | 쉬운 투자 시대의 종말 | WHRIA | 2009.09.14 | 8694 |
1638 | 개업 | WHRIA | 2009.10.19 | 8660 |
1637 | 승석오빠 Fighting!!! | 이슬이 | 2000.06.05 | 8656 |
1636 | 내가 요즘 집중하는 일 | WHRIA | 2009.01.20 | 8611 |
1635 | 서버 이전 | WHRIA | 2012.10.03 | 8606 |
1634 | ZeroBoard XE | WHRIA | 2007.08.20 | 8602 |
1633 | 아산 사회 복지 재단 | WHRIA | 2009.02.25 | 8593 |
1632 | MedicalPhoto Release 1.0.6 | WHRIA | 2008.06.19 | 8569 |
1631 | Choose substance before appearance | WHRIA | 2007.08.28 | 8569 |
1630 | 주소 | WHRIA | 2011.04.20 | 8533 |
1629 | MedicalPhoto Release 1.0.7 | WHRIA | 2008.09.21 | 8529 |
1628 | 오빠 낭~~*^^* | KINOKO[[승욱이별명.. | 2000.06.06 | 8513 |
1627 | skin tone | WHRIA | 2008.10.18 | 8507 |