AtHomeInTheUniverse t1_ixtxjci wrote
Many file formats have what is literally called a "Magic Number" at the very beginning of the file. If the program sees that magic number, they know it is that file format.
capilot t1_ixv2kbw wrote
Fixed link: https://en.wikipedia.org/wiki/List_of_file_signatures
Fun fact: I've encountered jpeg files mis-labeled as ".gif" and vice-versa. A lot of software has no trouble with this at all, since it looks at the magic number. Your web browser for example.
Viewing a single comment thread. View all comments