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...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help