title: Imagick not returning the image resolution
body: <p><a href="https://i.stack.imgur.com/1XTX0.jpg" rel="nofollow noreferrer">for attached kind of images Imagick not returning resolution(Getting only height and width)</a></p>
  
  <p>Here is my code.</p>
  
  <pre><code>$image = new Imagick($tempPath);
  $resolutions = $image-&gt;getImageResolution();
  $imageGeometry = $image-&gt;getImageGeometry();
  if ($ext == 'bmp' || $ext == 'png') {
                          $xresolution = $resolutions['x'] * 2.54;
                          $yresolution = $resolutions['y'] * 2.54;
                      } else {
                          $xresolution = $resolutions['x'];
                          $yresolution = $resolutions['y'];
                      }
  $msg = array("status" =&gt; "success", "imageHeight" =&gt; $imageGeometry['height'], "imageWidth" =&gt; $imageGeometry['width'], "HorizontalResolution" =&gt; $xresolution, "VerticalResolution" =&gt; $yresolution);
  </code></pre>