title: PHP Imagick won't add ICC color profile
body: <p>I'm working on a project where I've had to learn about color profiles a bit, still very much a novice. This code doesn't seem to be adding the icc profile:</p>
  <pre><code>$im = new Imagick;
  $im-&gt;readImage('input.tif');
  
  print_r($im-&gt;getImageProfiles('*', false));
  
  $im-&gt;stripImage();
  $im-&gt;profileImage('icc', file_get_contents('myprofile.icc'));
  
  print_r($im-&gt;getImageProfiles('*', false));
  </code></pre>
  <p>Result:</p>
  <pre><code>Array
  (
      [0] =&gt; 8bim
      [1] =&gt; icc
      [2] =&gt; xmp
  )
  Array
  (
  )
  </code></pre>
  <p>If I change the argument <code>icc</code> to <em>any</em> other string it appears in the output, but the file size doesn't change (not certain if it would).</p>
  <pre><code>$im-&gt;profileImage('testWhatever', file_get_contents('myprofile.icc'));
  </code></pre>
  <p>This shows <code>testWhatever</code> in the second <code>print_r()</code> output.</p>
  <p>What could be the issue and how can I debug this? I've read nearly every post here about this topic, I'm happy to provide more information.</p>
  <h3>Debug notes, hopefully something here is useful:</h3>
  <ul>
  <li>Version: ImageMagick 7.0.7-11 Q16 i686 2017-11-12</li>
  <li>PHP version 5.6.4</li>
  <li>Tiff file is CMYK</li>
  </ul>
  <p>Output of <code>convert -list configure</code></p>
  
  <pre><code>Path: /usr/local/lib/ImageMagick-7.0.7//config-Q16HDRI/configure.xml
  
  Name           Value
  -------------------------------------------------------------------------------
  CC             gcc -std=gnu99 -std=gnu99
  CFLAGS         -I/usr/include/libxml2   -I/usr/include/libpng12    -pthread -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12   -I/usr/include/freetype2        -fopenmp -g -O2 -Wall -mtune=core2 -fexceptions -pthread -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16
  CODER_PATH     /usr/local/lib/ImageMagick-7.0.7/modules-Q16HDRI/coders
  CONFIGURE      ./configure
  CONFIGURE_PATH /usr/local/etc/ImageMagick-7/
  COPYRIGHT      Copyright (C) 1999-2017 ImageMagick Studio LLC
  CPPFLAGS       -I/usr/local/include/ImageMagick-7
  CXX            g++
  CXXFLAGS       -g -O2 -pthread
  DEFS           -DHAVE_CONFIG_H
  DELEGATES      bzlib mpeg fontconfig freetype jng jpeg pango png ps tiff x xml zlib
  DISTCHECK_CONFIG_FLAGS  --disable-deprecated  --with-quantum-depth=16  --with-jemalloc=no  --with-umem=no  --with-autotrace=no  --with-gslib=no  --with-fontpath=  --with-rsvg=no  --with-perl=no
  DOCUMENTATION_PATH /usr/local/share/doc/ImageMagick-7
  EXEC-PREFIX    /usr/local
  EXECUTABLE_PATH /usr/local/bin
  FEATURES       DPC HDRI Cipher OpenMP
  FILTER_PATH    /usr/local/lib/ImageMagick-7.0.7/modules-Q16HDRI/filters
  GIT_REVISION   12832
  HOST           i686-pc-linux-gnu
  INCLUDE_PATH   /usr/local/include/ImageMagick-7
  LDFLAGS        -L/usr/local/lib
  LIB_VERSION    0x707
  LIB_VERSION_NUMBER 7,0,7,11
  LIBRARY_PATH   /usr/local/lib/ImageMagick-7.0.7
  LIBS              -ltiff -lfreetype    -ljpeg   -lpng12        -lfontconfig      -lXext -lXt   -lSM -lICE -lX11   -lbz2   -pthread -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0     -lxml2    -lz    -lm -lgomp
  NAME           ImageMagick
  PCFLAGS        -fopenmp -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16
  PREFIX         /usr/local
  QuantumDepth   16
  RELEASE_DATE   2017-11-21
  SHARE_PATH     /usr/local/share/ImageMagick-7
  SHAREARCH_PATH /usr/local/lib/ImageMagick-7.0.7/config-Q16HDRI
  TARGET_CPU     i686
  TARGET_OS      linux-gnu
  TARGET_VENDOR  pc
  VERSION        7.0.7
  WEBSITE        http://www.imagemagick.org
  
  Path: [built-in]
  
  Name           Value
  -------------------------------------------------------------------------------
  FEATURES       OpenMP
  NAME           ImageMagick
  QuantumDepth   16
  </code></pre>