title: Image from RGB To Cmyk in php
body: <p>I've some problem with php and imagick, i want to convert some image from rgb system to cmyk, but i've only black/or non background nothing else.</p>
  
  <pre><code>    $icc_cmyk = file_get_contents('USWebUncoated.icc');
      $img-&gt;profileImage('icc', $icc_cmyk);
      $img-&gt;setImageColorspace(12);
      if ($php_vs &lt; 5.3) {
          //ADJUST GAMMA BY 20% for 5.2.x
          $img-&gt;levelImage(0, 2.0, $range['quantumRangeString']);
      } else {
          //php 5.3 hack FOR INVERTED COLORS
          $img-&gt;negateImage(false, Imagick::CHANNEL_ALL);
      }
      $img-&gt;stripImage();
  
  //$img-&gt;setImageColorspace(Imagick::COLORSPACE_CMYK);
  $img-&gt;writeImage('cmyk.png');
  </code></pre>