Skip to content

Wrong "savings" value if TinyPNG fails to get a lighter file #22

Open
@HugoHeneault

Description

Hi there,

Once again, thanks for your great plugin! :-)

I'm getting an issue with the saving value when the processed file is not smaller :

Running "tinypng:compress" (tinypng) task
↑ Upload:   [||||||||||||||||||||] 100% (1/1 image)
↓ Download:

Skipped: 31 images, Compressed: 1 image, Savings: 87.46 KB (ratio: 0)

There is no file downloaded, but Savings: 87.46 KB (ratio: 0).
The filesize here is 87.46 exactly.

Any ideas?
Thanks!

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions