Lymphatus / caesium-clt

Caesium Command Line Tools - Lossy/lossless image compression tool
http://saerasoft.com/caesium
Other
347 stars 32 forks source link

Cannot decode any animated webp files #71

Open fire-eggs opened 1 month ago

fire-eggs commented 1 month ago

Platform: Linux Mint 21.2 caeseium 0.20.0 (x86_64-unknown-linux-musl download)

Every .webp file I've tried to use results in the following message:

[WARNING] File /home/kevin/temp/db2022w_test_out/caesiumclt-0.20.0-x86_64-unknown-linux-musl/3091486.webp was not compressed. Reason: Error decoding WebP image [20304] (Code: 210)

In case there was a 20M limit, I've tried smaller files (attached) with no luck. 1729000.webp.zip

The program successfully (and helpfully!) compressed a PNG file. All the webp files I've tried can be viewed successfully.

fire-eggs commented 1 month ago

Using the attached webp, caesium online states "an error has occurred", although it successfully is showing the animated webp icon.

Lymphatus commented 1 month ago

Handling animated webp files requires a slightly different approach than the non-animated ones and still it's not supported. I'll try working on it to support those too.

Thanks for reporting!

fire-eggs commented 1 month ago

Gotcha. Just realized it myself.

Lymphatus commented 1 month ago

I've updated libcaesium to support animated WebP, so as soon I update the dependency in this project it should work. Expect it to be shipped in the next release.