PHP 程式若要判斷圖片是RGB 或 CMYK 的話,可以透過 getimagesize 函式取得,

getimagesize [channels]

如果輸出為3 就是RGB,如果輸出為4 就是CMYK

但這個類別只有JPG才有,

完整的 getimagesize  函式的使用方法

http://php.net/manual/en/function.getimagesize.php

 

參考網頁:

http://xutingka.blogspot.tw/2008/10/get-image-colorspace-cmyk-or-rgb.html

arrow
arrow
    文章標籤
    PHP RGB PHP CMYK
    全站熱搜

    Feng 發表在 痞客邦 留言(0) 人氣()