Issue with Encoder for jpegxl-rs
crates.io·5h·
Discuss: r/rust
🎬WebCodecs
Preview
Report Post

I am pretty new to Rust, and I am trying to use the jpegxl-rs crate to encode files to .jxl and then also be able to decode back into the original file type. I have everything set up, but when I go to use encoder.encode() I run into an error where it says "Encoder failed to encode file /home/[user]/Pictures/[filename].png: The encoder API is used in an incorrect way" .

From the research I've done, I should have everything correct, but I still don't understand why it is throwing an error. Has anyone on here messed with jpegxl-rs and had this issue? I am using Tauri, but I don't think that is part of the issue as I am using Rust specific libraries. Here i...

Similar Posts

Loading similar posts...