node-jpg-is-cmyk
Check if a jpg is in CMYK color mode.
install
npm install jpg-is-cmyk-color-mode
API
// @param data file path
// @return Promise<boolean> true if jpg is cmyk
isCmykFromFile(file: string)
// @param data file data Buffer
// @return boolean true if jpg is cmyk
isCmykFromData(data: Buffer)
DEMO
; // const file = 'C:/Users/admin/Desktop/0001.jpg';// const file = 'C:/Users/admin/Desktop/out3.jpg';; jpg.isCmykFromFilefile.then.catch;
License
MIT