imagemagick resizing and quality PNG

前端 未结 4 627
庸人自扰
庸人自扰 2021-02-02 11:29

In my application I need to resize and make the quality on PNG files poorer.

In full size the PNGs are 3100x4400px using 2,20MB disk space.

When running the fo

4条回答
  •  故里飘歌
    2021-02-02 12:03

    Help page says, that -quality option used with PNG sets the compression level for zlib, where (roughly) 0 is the worst compression, 100 - is the best (default is 75). So try to set -quality to 100 or even remove the option.

    Another method is to specify PNG:compression-level=N, PNG:compression-strategy=N and PNG:compression-filter=N to achieve even better results.

    http://www.imagemagick.org/script/command-line-options.php#quality

提交回复
热议问题