all files / src/imageLoader/ isColorImage.js

100% Statements 1/1
100% Branches 8/8
100% Functions 1/1
100% Lines 1/1
1 2 3 4 5 6 7 8 9 10 11  11×                  
export default function (photoMetricInterpretation) {
  return (photoMetricInterpretation === 'RGB' ||
    photoMetricInterpretation === 'PALETTE COLOR' ||
    photoMetricInterpretation === 'YBR_FULL' ||
    photoMetricInterpretation === 'YBR_FULL_422' ||
    photoMetricInterpretation === 'YBR_PARTIAL_422' ||
    photoMetricInterpretation === 'YBR_PARTIAL_420' ||
    photoMetricInterpretation === 'YBR_RCT' ||
    photoMetricInterpretation === 'YBR_ICT');
}