title: Configuring PNG on ImageMagick on a Linux Server
body: <p>I have been trying to run the following script on ImageMagick on a Linux server </p>
  
  <pre><code>convert resized.png -gravity Center -crop 1024X768+0+0 +repage flower.png
  </code></pre>
  
  <p>but have been hitting the following error:</p>
  
  <pre><code>convert: no decode delegate for this image format `PNG' @ error/constitute.c/ReadImage/501.
  convert: no images defined `flower.png' @ error/convert.c/ConvertImageCommand/3212.
  </code></pre>
  
  <p>It looks like there is no delegate for PNG.</p>
  
  <p>When I run: </p>
  
  <pre><code>identify -version
  </code></pre>
  
  <p>I get this result that shows that the PNG delegate is not installed:</p>
  
  <pre><code>Version: ImageMagick 6.9.0-4 Q16 x86_64 2015-01-25       http://www.imagemagick.org
  Copyright: Copyright (C) 1999-2015 ImageMagick Studio LLC
  Features: DPC OpenMP
  Delegates (built-in): bzlib freetype jpeg lcms tiff x zlib
  </code></pre>
  
  <p>As far as I can tell I have 'libpng' installed on my server.</p>
  
  <p>How do I configure the PNG delegate for ImageMagick on my Linux server?</p>
  
  <p>I have 'yum' installed but not 'apt-get'.</p>