ImageMagick: Lossless max compression for PNG?

后端 未结 5 1463
孤城傲影
孤城傲影 2020-12-23 14:03

I\'d like to achieve a maximum amount of compression when saving to a lossless PNG using ImageMagick. I\'m doing batch conversion of many PSDs.

I tried a few things,

5条回答
  •  盖世英雄少女心
    2020-12-23 14:44

    The best compression I got was as follows:

    convert wallpsw.png -resize 1024x768 -quality 95 \
                        -depth 8 wallpsw-q95-r1024x768-d8.png
    

    The results:

    identify wallpsw*
    
     wallpsw.png PNG 1920x1080 1920x1080+0+0 16-bit DirectClass 4.63MB 0.000u 0:00.000
     wallpsw-q95-r1024x768-d8.png[1] PNG 1024x576 1024x576+0+0 8-bit DirectClass 854KB 0.000u 0:00.000
    

    If anyone knows a better way, tell me please. I could not find.

提交回复
热议问题