Conversation
Notices
-
Embed this notice
somewhat surprised there isn't a "open this image" API. like just given a blob or a file handle, identify the type and size or get the pixels.
this kind of thing DOES exist but its usually through some asinine route like gstreamer pipelines
-
Embed this notice
@s8n yes people have done it. it's also one of the most obvious things to just be part of the desktop apis.
(amigaos did something like this, even.)
-
Embed this notice
@icedquinn canvas is the open this image api for javascript. OpenCV will do it in python straight to a numpy array. I assume there are tens of thousands of other libraries that can convert images of many formats into pixel arrays