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