Decoder -> Encoder? #344
Answered
by
fintelia
jamesosaurus
asked this question in
Q&A
-
Is there a standard way of writing out a png that has previously been read in (presumably after some alteration)? |
Beta Was this translation helpful? Give feedback.
Answered by
fintelia
May 20, 2022
Replies: 1 comment 2 replies
-
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")?; |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
jamesosaurus
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There isn't one specific way. But something like this should be enough: