I’m storing thousands of images in a database in their binary format. I would like to determine the MIME type with PHP GD instead of using another column in the table.
What’s the best way to do this without reading and writing to a temporary image file?
You can use getimagesizefromstring