$exif->isColor()

Checks if the image colorspace is either RGB or CMYK

  • return (boolean)

Example

<?php if($page->image()->exif()->isColor()): ?>
This is a color picture
<?php endif ?>

Is something missing or incorrect? Edit this page on Github…