- @echo off
- for /r %%i in (11.jpg? 22.jpg?) do (
- if /i "%%~nxi" == "11.jpg" (
- convert "%%i" -gravity center -crop 1083x1375+0+0, -resize 230x290 "%%~dpi55.jpg"
- ) else if /i "%%~nxi" == "22.jpg" (
- convert "%%i" -gravity center -crop 1083x1375+0+0, -resize 230x290 "%%~dpi77.jpg"
- )
- )
- pause
复制代码
|