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
Currently the only way to write a PNG image is to save it to a file. It would be nice if there was an API that took a std::io::Write (or std::io::Write + std::io::Seek) for cases when you want an in-memory image.
My use case is writing an SVG with an embedded image. I need to encode to PNG, then base64-encode the result and then write to disk.
The text was updated successfully, but these errors were encountered:
This is possible with a DynamicImage or by using the png encoder interface directly. DynamicImage is a public enum of different ImageBuffer variants. But the api could be more consistent. Does this fit your usecase?
Currently the only way to write a PNG image is to save it to a file. It would be nice if there was an API that took a
std::io::Write
(orstd::io::Write + std::io::Seek
) for cases when you want an in-memory image.My use case is writing an SVG with an embedded image. I need to encode to PNG, then base64-encode the result and then write to disk.
The text was updated successfully, but these errors were encountered: