save_png() to any buffer, stream or file #2872
Closed
pfeatherstone
started this conversation in
Show and tell
Replies: 1 comment 1 reply
-
Aside, if we were to generalise the PNG wrapper in dlib, we could replace |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a use case where I need to save an image to png in raw memory. I can achieve this using the following:
We should maybe also generalize the libpng wrapper in dlib, which currently only supports saving to file, to support arbitrary buffers or stream. It's possible such an implementation would be more optimal than going via libavcodec. However, you can do this now with dlib using the ffmpeg wrappers.
Beta Was this translation helpful? Give feedback.
All reactions