I'm not quite sure this is the right place for this feature request. If not, I hope you can point me to the right direction.
Anyway, it would be great if imlib2 could read image content from memory. This would benefit programs that use imlib2 library. For instance, a program could read the image content from standard input (stdin) without needing to write the image content on disk. This would greatly improve security and usability.
On Linux, display program supports showing image content read from stdin:
cat mypicture.png | display
However, sxiv image viewer, which uses imlib2, cannot support that because imlib2 doesn't support reading image content from memory. See: https://github.com/muennich/sxiv/issues/250. It is possible to work around this by writing stdin to a temporary file, but sxiv shouldn't do it itself, because it would be misleading for the user who expects the content NOT to touch the disk when the content is fed directly to stdin. So, it is left for the user to do some clumsy temporary file stuff.