image optimizer for web

Pingo Grayscale fails to convert all files since 1.16

Corwin said, on 28/01/2024
Some images will not be converted into grayscale by Pingo since version 1.16. Instead they are skipped. This is true when they are full color or already shades of gray (but not actually grayscale). 
https://cdn.rebrickable.com/media/thumbs/sets/30676-1/134779.jpg/1000x800p.jpg?1702965915.4043305 pingo -grayscale *.jpg
cédric (dev) said, on 29/01/2024
-grayscale alone does loss over loss. try with -lossless
Aleksandr said, on 02/02/2024
Dear Cédric, actually adding -lossless along with -grayscale is counter-intuitive, because converting from colors (millions) to the shades of gray (256) is expected to be a lossy conversion. I have stumbled upon another example when -grayscale alone does not work (something is squeezed there, but colors remain):

https://telegra.ph/file/319c145bfa78472652a7b.png

  pingo - (0.21s):
  -----------------------------------------------------------------
  1 file => 3.61 KB - (24.58%) saved
  -----------------------------------------------------------------

reply