Resize images in directory

前端 未结 6 2085
半阙折子戏
半阙折子戏 2021-02-03 14:41

I have a directory full of images that I would like to resize to around 60% of their original size.

How would I go about doing this? Can be in either Python or Perl

6条回答
  •  北荒
    北荒 (楼主)
    2021-02-03 15:15

    I use Python with PIL (Python Image Library). Of course there are specialized programs to do this.

    Many people use PIL to such things. Look at: Quick image resizing with python

    PIL is very powerful and recently I have found this recipe: Putting watermark to images in batch

提交回复
热议问题