4
votes
1answer
89 views

IANA image format string from binary stream

How can I get the official IANA Image Media Type (if any) of a binary stream? I'd like to avoid trusting to file extensions and vague guesses when handling images. Preferably some command using common ...