private PhotoModel tryConvertDriveItemToPhotoModel(
      Optional<String> albumId, MicrosoftDriveItem driveItem, UUID jobId) {
    if (!driveItem.isImage()) {
      return null;
    }

    PhotoModel photo =
        new PhotoModel(driveItem.name, driveItem.downloadUrl, driveItem.description,
            driveItem.file.mimeType, driveItem.id, albumId.orElse(null), false /*inTempStore*/);
    monitor.debug(
        () -> String.format("%s: Microsoft OneDrive exporting photo: %s", jobId, photo));
    return photo;
  }
Exports Microsoft OneDrive photos using the Graph API.

<p>Converts folders to media albums.
extensions/data-transfer/portability-data-transfer-microsoft/src/main/java/org/datatransferproject/transfer/microsoft/media/MicrosoftMediaExporter.java