function getImagesForTIFF(tiff) {
  return tiff.getImageCount().then(function (count) {
    const requests = new Array(count);
    for (let i = 0; i < count; ++i) {
      requests[i] = tiff.getImage(i);
    }
    return Promise.all(requests);
  });
}
@param {GeoTIFF|MultiGeoTIFF} tiff A GeoTIFF.
@return {Promise<Array<GeoTIFFImage>>} Resolves to a list of images.