AboutContactLogin

Index

AutoLinkGalleryFiles

The AutoLinkGalleryFiles method automatically links Raw files in the gallery to corresponding photos based on a set of heuristics. This method is new in API version 1.8.

void AutoLinkGalleryFiles(
    long galleryId
    )

Parameters

galleryId
Identifier of the gallery in which to link Raw files to photos.

Remarks

This method automatically links Raw files in the gallery to corresponding photos based on the following heuristics:

  • If the gallery contains a single photo with the same file name, ignoring the extension, the Raw file will be linked to that photo. For example, if the Raw file name is "IMG_0001.cr2" and the gallery contains a single photo which file name is "IMG_0001.jpg", the raw file will be linked to that photo.
  • If the gallery contains a single photo which date and time taken match that of the Raw file, the Raw file will be linked to that photo.
  • Note the method only attempts to link Raw files that are not currently linked to any photos. Existing links are not affected.

See Also