title: JavaFX: Get format (PNG, JPG..) of an image?
body: <p>I am creating an application that for some reasons shall only accept PNG images.</p>
  
  <p>How can I check if an image is really a PNG image? Currently I am using the JavaFX 2 <a href="http://docs.oracle.com/javafx/2/api/index.html?javafx/scene/image/Image.html" rel="nofollow">Image</a> class to load the image.</p>
  
  <p>Thanks for any hint!</p>