Stay organized with collections
Save and categorize content based on your preferences.
Lists all images in the camera. This command was deprecated in API level 2.
Please use camera.listFiles instead.
If a camera doesn’t support the requested parameters, the camera must return the
maximum capability available for the hardware. For example, a rare case might be
the request: {entryCount: 500, maxSize: 2000}. Instead of throwing an error,
the response should be based on the maximum capability supported by the camera,
such as: {entryCount: 100, maxSize: 200}. Please throw errors for all other
cases; for example, when the request is, {entryCount: 500, maxSize: -500}, it
should throw the error invalidParameterValue since maxSize is negative.
Parameters
entryCount: Desired number of entries to return.
maxSize: Maximum size of thumbnail images; max(thumbnail_width, thumbnail_height).
Required only when includeThumb is true (below).
continuationToken: (Optional) An opaque continuation token of type string, returned by previous listImages call, used to retrieve next images. Omit this parameter for the first listImages call. Note:The camera is responsible for the algorithm that generates the token.
includeThumb: (Optional) Defaults to true. Use false to omit thumbnail images from the result.
Results
entries: A list of image properties. Each entry should contain the following fields
except for latitude and longitude, which are optional:
name: Name
uri: URI
size: Size in bytes
dateTimeZone: Date, time, and time zone for the image, in the format:
YYYY:MM:DD HH:MM:SS+(-)HH:MM. Use 24-hour format for the time. Date
and time are separated by one blank
character. Time zone is offset from UTC time.
lat: (Optional) Latitude of the image capture location.
lng: (Optional) Longitude of the image capture location.
continuationToken: (Optional) Set only if the result is incomplete
(incomplete means any listing that does not include the last image). To fetch remaining
entries, the client should call listImages command again with the token.
Errors
missingParameter: Any required parameter is not specified;
for example, entryCount is not specified.
invalidParameterName: The input parameter name is
unrecognized.
invalidParameterValue: The input parameter name is
recognized, but its value is invalid; for example,
the continuationToken doesn't exist, is out of range, its data
type is incorrect, the data type of includeThumb is incorrect, or
maxSize has the wrong data type when includeThumb is
true.
[null,null,["Last updated 2024-10-09 UTC."],[[["\u003cp\u003e\u003ccode\u003elistImages\u003c/code\u003e is deprecated and should be replaced with \u003ccode\u003ecamera.listFiles\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe camera should return its maximum capability if the requested parameters exceed its limits.\u003c/p\u003e\n"],["\u003cp\u003eResults include a list of image properties such as name, URI, size, date/time, location, dimensions, and an optional thumbnail.\u003c/p\u003e\n"],["\u003cp\u003eErrors are thrown for missing or invalid parameters, including out-of-range or incorrect data types.\u003c/p\u003e\n"],["\u003cp\u003eUse the \u003ccode\u003econtinuationToken\u003c/code\u003e for retrieving large lists of images in multiple calls.\u003c/p\u003e\n"]]],["The `listImages` command retrieves a list of image properties from the camera, sorted by capture time (newest first). Key actions include specifying parameters like `entryCount`, `maxSize`, and `includeThumb` to customize the result. An optional `continuationToken` fetches subsequent image batches. Results include image details like name, URI, size, date/time, dimensions, and an optional thumbnail. Cameras must adapt to valid parameter requests within hardware capabilities and return errors for invalid parameter values.\n"],null,["# camera.listImages\n\nLists all images in the camera. **This command was deprecated in API level 2.\nPlease use [camera.listFiles](/streetview/open-spherical-camera/reference/camera/listfiles) instead.**\n| **Note:** File list *MUST* be sorted by capture time, newest first.\n\nIf a camera doesn't support the requested parameters, the camera must return the\nmaximum capability available for the hardware. For example, a rare case might be\nthe request: `{entryCount: 500, maxSize: 2000}`. Instead of throwing an error,\nthe response should be based on the maximum capability supported by the camera,\nsuch as: `{entryCount: 100, maxSize: 200}`. Please throw errors for all other\ncases; for example, when the request is, `{entryCount: 500, maxSize: -500}`, it\nshould throw the error `invalidParameterValue` since `maxSize` is negative.\n\nParameters\n----------\n\n- **entryCount:** Desired number of entries to return.\n- **maxSize:** Maximum size of thumbnail images; max(thumbnail_width, thumbnail_height). Required only when `includeThumb` is true (below).\n- **continuationToken:** (Optional) An opaque continuation token of type string, returned by previous `listImages` call, used to retrieve next images. Omit this parameter for the first `listImages` call. **Note:** *The camera is responsible for the algorithm that generates the token.*\n- **includeThumb:** (Optional) Defaults to `true`. Use `false` to omit thumbnail images from the result.\n\nResults\n-------\n\n- **entries:** A list of image properties. Each entry should contain the following fields except for latitude and longitude, which are optional:\n - `name`: Name\n - `uri`: URI\n - `size`: Size in bytes\n - `dateTimeZone`: Date, time, and time zone for the image, in the format: `YYYY:MM:DD HH:MM:SS+(-)HH:MM`. Use 24-hour format for the time. Date and time are separated by one blank character. Time zone is offset from UTC time.\n - `lat`: (Optional) Latitude of the image capture location.\n - `lng`: (Optional) Longitude of the image capture location.\n - `width`: Image width\n - `height`: Image height\n - `thumbnail`: Base64 encoded string for thumbnail image (when `includeThumb == true`).\n- **totalEntries:** Total number of entries in storage.\n- **continuationToken:** (Optional) Set only if the result is incomplete (*incomplete* means any listing that does not include the last image). To fetch remaining entries, the client should call `listImages` command again with the token.\n\nErrors\n------\n\n- **missingParameter:** Any required parameter is not specified; for example, `entryCount` is not specified.\n- **invalidParameterName:** The input parameter name is unrecognized.\n- **invalidParameterValue:** The input parameter name is recognized, but its value is invalid; for example, the `continuationToken` doesn't exist, is out of range, its data type is incorrect, the data type of `includeThumb` is incorrect, or `maxSize` has the wrong data type when `includeThumb` is true.\n\n| Command I/O ----------- ||\n|----------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| **Command Input** | ```text { \"parameters\": { \"entryCount\": 50, \"maxSize\": 100, \"includeThumb\": true } } ``` |\n| **Command Output** | ```text { \"results\": { \"entries\": [ { \"name\": \"abc\", \"uri\": \"image URI\", \"size\": image size in bytes, \"dateTimeZone\": \"2014:12:27 08:00:00+08:00\" \"lat\": 50.5324 \"lng\": -120.2332 \"width\": 2000 \"height\": 1000 \"thumbnail\": \"ENCODEDSTRING\" } ... { ... } ], \"totalEntries\": 250, \"continuationToken\": \"50\" } } ``` |\n| **Command Output (Error)** | ```text { \"error\": { \"code\": \"invalidParameterValue\", \"message\": \"Parameter continuationToken is out of range.\" } } ``` |"]]