Resize images in directory

前端 未结 6 2084
半阙折子戏
半阙折子戏 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 14:56

    Use PerlMagick, it's an interface to the popular ImageMagick suite of command line tools to do just this kind of stuff. PythonMagic is available as well.

提交回复
热议问题