Report question

Question: Is there a way to infer what image format a file is, without reading the entire file?