Pingo yields a better size with lower numbers than s7-8

John Doe said on 12/08/2017

Shouldn't the higher the number the lower the size or equal to the lower number? in this case the sizes are actually bigger.

pingo -s6 "*.png"

pingo - [s6] - (6.80s):
----------------------------------------------------------------
3 files => 2808.35 KB - (45.86%) saved
----------------------------------------------------------------

pingo -s8 "*.png"

pingo - [s8] - (6.08s):
----------------------------------------------------------------
3 files => 427.64 KB - (6.98%) saved
----------------------------------------------------------------

Version 0.92k

John Doe said on 12/09/2017

Hi, I am the one who reported this bug and just wanted to tell you this happens for every file, is not just "in this case".

cédric (dev) said on 12/11/2017

can you provide those 3 files?

John Doe said on 12/13/2017

Here is an entire folder (72 pictures)

 
pingo -s8 "*.png"

  pingo - [s8] - (204.79s):
  ----------------------------------------------------------------
  72 files => 293239.73 KB - (67.76%) saved
  ----------------------------------------------------------------
pingo -s6 "*.png"

  pingo - [s6] - (203.49s):
  ----------------------------------------------------------------
  72 files => 349281.02 KB - (80.71%) saved
  ----------------------------------------------------------------
pingo

  ----------------------------------------------------------------
  pingo v0.92k - experimental Web PNG/JPG optimizer
  ----------------------------------------------------------------

cédric (dev) said on 12/14/2017

thanks, i will fix this later. however, note that pingo is a Web PNG optimizer: in this usage context, the pictures you provided should be stored as JPG (what pingo does by default)

John Doe said on 12/14/2017

Do the above commands not optimize the picture in a lossless way?

cédric (dev) said on 12/14/2017

-sN is lossless here (since you provided truecolor images). however, you could try this:

pingo *.png

this should convert your PNG to JPG, that is a much better format for this kind of pictures. pingo picks quality by itself, but you can set it with -jpgquality=N

comment this