title: convert image to rgb array and convert it to CMYK array using python
body: <p>I'm trying to convert an image to cmyk array and seperate Cyan,Magentha,Yellow,Black values .Is it possible with python .How to convert image to Rgb array and then to cmyk?</p>
  
  <p>from PIL import Image</p>
  
  <p>im = Image.open('apple.png')</p>
  
  <p>pixels = list(im.getdata())</p>
  
  <p>print (pixels)</p>
  
  <p>i tried the above code but the ide got stuck after running the code.is there any mistake in that code ?(in above code i just print the rgb array only).</p>