Skip to main content
johnt53984649
Inspiring
March 28, 2019
Question

PNG Compression Level

  • March 28, 2019
  • 1 reply
  • 3858 views

I noticed in the Photoshop Scripting guide, PNGSaveOptions has a member called "compression", which takes an integer between 0 and 9, inclusive.

5uZQ2gw.png

However, I am confused as to what this value corresponds to.  In the GUI, when saving a PNG, the only options are these:

q3lsqcv.png

I'm not sure how a value between 0 and 9 corresponds to "None/Fast" or "Smallest / Slow".

Can somebody please explain what each of the 0-9 compression levels correspond to, or how they work?  I would appreciate some background.  Thanks.

This topic has been closed for replies.

1 reply

Legend
March 28, 2019

"None/Fast" -> compression=0

"Smallest/Slow" -> compression=9

johnt53984649
Inspiring
March 28, 2019

So then what's everything in between?  (1-8)?

johnt53984649
Inspiring
May 4, 2019

Does anybody know what the levels in between correspond to?  I have still been unable to locate this information.