How do you tell if an image is a PNG?

Pham Quỳnh

New member
How do you tell if an image is a PNG?
Answer
Three methods:
  1. 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.
  2. Use identify file like torazaburo wrote in the comments (part of imagemagick lib)
28.12.2014
 

Tìm kiếm

Back
Top