Skip to content

Decoder -> Encoder? #344

Answered by fintelia
jamesosaurus asked this question in Q&A
May 19, 2022 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

There isn't one specific way. But something like this should be enough:

let img = io::Reader::open("original.png")?.decode()?;
// ... modify img ...
img.save("modified.png")?;

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@jamesosaurus
Comment options

@fintelia
Comment options

Answer selected by jamesosaurus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants