api/MarkLogic/MLPHP/ImageDocument.php
public function setContentFile($file)
    {
        $type = $this->getFileMimeType($file);
        // Check for $type === '' to address MIME check not working on XAMPP Windows
        if ($type === 'image/jpeg' || $type === 'image/tiff' || $type === '') {
            if (function_exists('exif_read_data')) {
                $this->exif = exif_read_data((string)$file);
            }
        }
        parent::setContentFile((string)$file);
    }
public function setContentFile($file)
    {
        $type = $this->getFileMimeType($file);
        // Check for $type === '' to address MIME check not working on XAMPP Windows
        if ($type === 'image/jpeg' || $type === 'image/tiff' || $type === '') {
            if (function_exists('exif_read_data')) {
                $this->exif = exif_read_data((string)$file);
            }
        }
        parent::setContentFile((string)$file);
    }
Set the image content from the file system and also set the EXIF data.

@param string $file The file location.