siiptuo / pio

Optimize images while maintaining the same perceived quality
138 stars 10 forks source link

Failed to optimize the input image, copying the input image to output #27

Closed wormtql closed 1 year ago

wormtql commented 1 year ago

I tried to optimize a webp image, here's the output:

|                 [--O-] |  85 quality  0.007544 SSIM  113 % of original
|                    [O] |  90 quality  0.007544 SSIM  113 % of original
|                     [O |  93 quality  0.007544 SSIM  113 % of original
|                      O |  94 quality  0.007544 SSIM  113 % of original
|                      O |  95 quality  0.007544 SSIM  113 % of original
Failed to optimize the input image, copying the input image to output...

and the command is:

./pio-x86_64-unknown-linux-musl xxx.webp --output output.png
siiptuo commented 1 year ago

This is expected behavior because WebP images, especially photographs, are already heavily compressed, so it's probably impossible to create a PNG with smaller file size.

wormtql commented 1 year ago

Thanks a lot!