How do you check if a PNG file is valid by examining its header?
By calculating the file's checksum
By opening the file in an image viewer
By checking the file extension
By reading the first 8 bytes and comparing them to a known sequence