title: Getting exception 'no decode delegate for this image format' in PHP iMagick BUT NOT on ImageMagick
body: <p>On my Ubuntu 18.04.1 LTS Server I have ImageMagick, Apache2, Php 7.2 and Php iMagick 3.4.3 set up. </p>
  
  <p>On terminal, <code>convert -version</code> outputs:</p>
  
  <pre><code>Version: ImageMagick 7.0.8-12 Q16 x86_64 2018-10-14 https://imagemagick.org
  Copyright: © 1999-2018 ImageMagick Studio LLC
  License: https://imagemagick.org/script/license.php
  Features: Cipher DPC HDRI OpenMP
  Delegates (built-in): bzlib cairo djvu fftw fontconfig freetype gslib heic jbig jng jp2 jpeg lcms lqr lzma openexr pangocairo png ps raw rsvg tiff webp wmf x xml zlib
  </code></pre>
  
  <p><code>PhpInfo()</code> for Imagick outputs:
  <a href="https://i.stack.imgur.com/DkEDx.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DkEDx.png" alt="Output for PhPinfo"></a></p>
  
  <p>On the terminal, <code>convert pic.x3f pic.jpg</code> works perfectly with no errors and the file is created.</p>
  
  <p>However over php-imagick and apache2 server, <code>$img = new Imagick('temp-upload-path');</code>for the same 'pic.x3f' file returns</p>
  
  <pre><code>Fatal error: Uncaught ImagickException: no decode delegate for this image format `XEF' @ error/constitute.c/ReadImage/556 in /var/www/html/Upload.php:45 Stack trace: #0 /var/www/html/Upload.php(45): Imagick-&gt;__construct('/tmp/phpvFoXK3') #1 {main} thrown in /var/www/html/Upload.php on line 45
  </code></pre>
  
  <p>The same is true for files for formats <em>MDC</em> and <em>RAW</em>, (Can be read in ImageMagick but returns the error on Php's iMagick). </p>
  
  <p>Also,
  Formats: <em>DCR NRW ARW RW2 SR2 SRF KDC</em> are all successfully read in ImageMagick but on attempting to read and convert them in Php's Imagick, this is returned:</p>
  
  <pre><code>Fatal error: Uncaught ImagickException: TIFF directory is missing required "ImageLength" field. `MissingRequired' @ error/tiff.c/TIFFErrors/650 in /var/www/html/Upload.php:45 Stack trace: #0 /var/www/html/Upload.php(45): Imagick-&gt;__construct('/tmp/phpf9Rylo') #1 {main} thrown in /var/www/html/Upload.php on line 45
  </code></pre>
  
  <p>It appears it is unable to read them via PHP-iMagick which is supposed to link to the system's ImageMagick that successfully reads them. I am yet to discover issues with other formats, jpg, png, tiff, webp etc are all being read fine. This is happening with RAW formats. </p>
  
  <p>Any help is appreciated</p>