Read an image from stdin without knowing the image format #2512
Replies: 2 comments 1 reply
-
Should be part of the metadata. I'd start here: https://docs.sixlabors.com/articles/imagesharp/imageformats.html |
Beta Was this translation helpful? Give feedback.
-
Hi @tiesont, thanks for your reply. I just realized the the error I am getting:
is coming not from a problem decoding the incoming image (which is what I thought originally) but from trying to save the image without (inadvertently) an extension. Completely my bad, sorry. Thanks again for your help, it made me look closer at the problem. D |
Beta Was this translation helpful? Give feedback.
-
Hello Folks,
I need to be able to read an image of unknown format from stdin and determine its format for further processing. Is this possible using ImageSharp? Any help is much appreciated.
To be clear, I am not asking how to read from standard in but wether or not I can use ImageSharp to determine the image format.
Regards,
Daryl
Beta Was this translation helpful? Give feedback.
All reactions