title: convert cmyk images to rgb in folder use shell command
body: <p>I want to find all CMYK type images in folder and change them to RGB colorspace.. I use this </p>
  
  <pre><code>for f in ./*.jpg
  do
  type=$(identify -format '%[colorspace]' ./$f);
  if [ '$type' == 'CMYK' ]
  then
  echo '$f is CMYK type';
  convert ./$f -colorspace CMYK ./$
  fi
  done
  </code></pre>