You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
❯ webpinfo -diag /home/somepath/resized-image.webp
File: /home/somepath/resized-image.webp
RIFF HEADER:
File size: 10631
Warning: RIFF size is smaller than the file size.
Error: Truncated data detected when parsing chunk payload.
Errors detected.
There were 1 warning(s).
This happens as a result of the resizing because it only happens at some given sizes where I guess there is a fraction getting dropped on the floor.
The filter also seems to play a role in this issue too.
Thoughts?
The text was updated successfully, but these errors were encountered:
[[package]]
name = "image-webp"
version = "0.1.0"
source = "git+https://github.com/image-rs/image-webp?branch=main#3bd5eb2a8c09dcdcd04c3f7c931e7831e84adb74"
dependencies = [
"byteorder",
"thiserror",
]
Though I'm still seeing the
RIFF HEADER:
File size: 20943
Warning: RIFF size is smaller than the file size.
Error: Truncated data detected when parsing chunk payload.
Errors detected.
There were 1 warning(s).
Hello 👋
I have this little side project I've been playing with where I build a wasm application from this rust app.
https://github.com/joshchernoff/rusty-image-resizer/blob/web/src/lib.rs
You can see I'm using image's resize_to_fill here https://github.com/joshchernoff/rusty-image-resizer/blob/696b8ef2f182d4deb45dbf074a1c3bd9356c622f/src/lib.rs#L8 and later I write to the cursor with the selected format here
https://github.com/joshchernoff/rusty-image-resizer/blob/696b8ef2f182d4deb45dbf074a1c3bd9356c622f/src/lib.rs#L23
When using
image::ImageFormat::WebP
sometimes I will produce an error in the image output.using the
-diag
option of the webpinfo command https://developers.google.com/speed/webp/docs/webpinfoI produce
This happens as a result of the resizing because it only happens at some given sizes where I guess there is a fraction getting dropped on the floor.
The filter also seems to play a role in this issue too.
Thoughts?
The text was updated successfully, but these errors were encountered: