title: Getting Image information using JMagick APIs
body: <p>Using Jmagick Java APIs, How do I get the image information such as:</p>
  
  <p>Codec, Color scheme, Color depth, Width, Height, Resize directive, Image Size etc.</p>
  
  <p>I tried executing the below code, but it did not give any useful details.</p>
  
  <pre><code>public static void main(String[] args) throws Exception {
  
     String baseDir = System.getProperty("user.dir");
     String pngFile = baseDir + File.separator + "input" + File.separator + "image.jpg";
  
     DisplayImageMetaData metaData = new DisplayImageMetaData();
  
     // Input BMP file
     String inputfileName = pngFile;
  
     // Get BMP file into ImageInfo object
     ImageInfo info = new ImageInfo(inputfileName); 
     DisplayImageMetaData.displayImageInfo(info);
  }
  </code></pre>
  
  <p>It give me following output, which is different. </p>
  
  <pre><code>Info PreviewType is 0(UndefinedPreview)
  Info Monochrome is 0
  Info Colorspace is 0(UndefinedColorspace)
  Info Resolution units is 0
  Info Compression is 0(UndefinedCompression)
  Info Density is null
  Info magick is 
  Info filename is /home/host1/javaWs/JMagick/input/image.jpg
  </code></pre>