How can I guess an image's mime type, in a cross-platform manner, and without any external libraries?
If you know in advance that you only need to handle a limited number of file formats you can use the imghdr.what function.
1.4m articles
1.4m replys
5 comments
57.0k users