#Get image information
5 messages · Page 1 of 1 (latest)
The detected format is completely transparent, sadly no way to get that at the moment.
What you can get back out is what you provide (source, alt-text, etc.); from there you could for example look at the file-extension.
You can't get the loaded bytes, but you can read the source separately and inspect them that way.
Note that image() also accepts the bytes type as a source. You'd need to handle that separately, but in that case, you can indeed get the bytes back out directly.
Ah okay, so i need to build my own "mime" detection method
Thanks Pink_3D :)