imagemagick resizing and quality PNG

前端 未结 4 628
庸人自扰
庸人自扰 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 11:50

    1. You can further reduce quality of PNG by using posterization:

      https://github.com/pornel/mediancut-posterizer (Mac GUI)

      This is a lossy operation that allows zlib to compress better.

    2. Convert image to PNG8 using pngquant.

      It reduces images to 256 colors, so quality depends on the type of image, but pngquant makes very good palettes, so you might be surprised how often it works.

    3. Use Zopfli-png or AdvPNG to re-compress images better.

      This is lossless and recommended for all images if you have CPU cycles to spare.

提交回复
热议问题