Command line batch image cropping tool

后端 未结 6 2108
执笔经年
执笔经年 2021-01-31 07:27

is there any lightweight command line batch image cropping tool(Linux or Windows) which can handle a variety of the formats ?

6条回答
  •  佛祖请我去吃肉
    2021-01-31 08:26

    for f in final/**/*;
    do
       convert -crop 950x654+0+660 "$f" "${f%.jpg}".jpg
    done
    

    This script loops through all the sub-folders and crops the .jpg files.

提交回复
热议问题