How do you tell if an image is a PNG?
Answer
Three methods:
Answer
Three methods:
- Open a file in a Hex editor (or just a binary file viewer). PNG files start with ‘PNG’, . jpg files should have ‘exif’or ‘JFIF’ somewhere in the beginning.
- Use identify file like torazaburo wrote in the comments (part of imagemagick lib)