How do I resize an image so that the longest size is shorter or equal to an amount?

前端 未结 2 477
一整个雨季
一整个雨季 2021-01-31 04:37

I think that

mogrify -resize \"1000>\" *.jpg

resizes a bunch of jpegs so that the shorter side is 1000px if that side was longer than 1000px

2条回答
  •  逝去的感伤
    2021-01-31 05:05

    You could also use:

    find . -type f -exec convert {} -resize "1000>" {} \; 
    

    this might also be:

    find ./*.jpg -exec convert {} -resize "1000>" {} \; 
    

提交回复
热议问题