Batch resize images into new folder using ImageMagick

后端 未结 6 2063
余生分开走
余生分开走 2021-01-31 08:37

I have a folder of images over 4MB - let\'s call this folder dsc_big/. I\'d like to use convert -define jpeg:extent=2MB to convert them to

6条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-31 08:52

    This was the command which helped me after a long try. I wanted to make same sized thumbnails from a big list of large images which have variable width and height . It was for creating a gallery page.

    convert -define jpeg:size=250x200 *.jpg  -thumbnail 250x200^ -gravity center -extent 250x200  crop/thumbnail-%d.jpeg
    

    I got re-sized thumbnails which all having same width and height. :) thanks to ImageMagick.

提交回复
热议问题