[Magick-bugs] Why MagickGetImageColorspace only get RGB, CMYK color space of the picture

jecelyin jecelyin at gmail.com
Sat Dec 6 06:33:10 PST 2008


$mgck_wnd = NewMagickWand();
  MagickReadImage($mgck_wnd, "E:\\Tester\\test.jpg");
  $img_colspc = MagickGetImageColorspace($mgck_wnd); //1 to return here, not 2 
  if ($img_colspc == MW_GRAYColorspace) {
    echo "file was in GRAY format<br />"; 
  } 

Hope to fix the bug, I would like to thank 
2008-12-06 



jecelyin 


More information about the Magick-bugs mailing list