--- title: "Photo settings" description: "Slate's photo settings with each getter, setter and value: drive mode, photo format and size, aspect ratio, JPEG quality, RAW compression, flash, shutter type." url: https://darkgrade.com/docs/slate/reference/settings-photos last_updated: 2026-12-04 docs_index: https://darkgrade.com/docs/llms.txt --- # Photo settings > Slate's photo settings with each getter, setter and value: drive mode, photo format and size, aspect ratio, JPEG quality, RAW compression, flash, shutter type. > ## Documentation Index > Fetch the complete documentation index at: https://darkgrade.com/docs/llms.txt > Use this file to discover all available pages before exploring further. What a photo is and how it is taken: drive mode, shutter type and flash, and the file the camera writes. This is one of the 7 pages of the [settings reference](https://darkgrade.com/docs/slate/reference/settings.md), which names every setting. [Photos](https://darkgrade.com/docs/functionality/photos.md) shows each at work in Studio, MCP, the CLI and Slate. Read and write one with its typed getter and setter, or with [`setControl`](https://darkgrade.com/docs/slate/getting_started/camera.md#setcontrol) by id. A camera offers only some values of each: `getCapabilities().controls` lists them now. A setter refuses a value the camera does not offer with [`CameraRefusedError`](https://darkgrade.com/docs/slate/reference/errors.md#camerarefusederror) before sending anything; a getter throws [`CameraUnsupportedError`](https://darkgrade.com/docs/slate/reference/errors.md#cameraunsupportederror) when the setting is absent or does not apply in the current mode. | Setting | Id | Getter and setter | | - | - | - | | [Drive mode](#drive-mode) | `driveMode` | [`getDriveMode`](#getdrivemode) [`setDriveMode`](#setdrivemode) | | [Photo format](#photo-format) | `photoFormat` | [`getPhotoFormat`](#getphotoformat) [`setPhotoFormat`](#setphotoformat) | | [Photo size](#photo-size) | `photoSize` | [`getPhotoSize`](#getphotosize) [`setPhotoSize`](#setphotosize) | | [Aspect ratio](#aspect-ratio) | `aspectRatio` | [`getAspectRatio`](#getaspectratio) [`setAspectRatio`](#setaspectratio) | | [JPEG quality](#jpeg-quality) | `jpegQuality` | [`getJpegQuality`](#getjpegquality) [`setJpegQuality`](#setjpegquality) | | [RAW compression](#raw-compression) | `rawCompression` | [`getRawCompression`](#getrawcompression) [`setRawCompression`](#setrawcompression) | | [Flash](#flash) | `flashMode` | [`getFlashMode`](#getflashmode) [`setFlashMode`](#setflashmode) | | [Shutter type](#shutter-type) | `shutterType` | [`getShutterType`](#getshuttertype) [`setShutterType`](#setshuttertype) | ## Drive mode What one press of the shutter does: one photo, a burst, a self-timer, or an exposure bracket. A drive mode in Slate's one spelling (`'Single'`, `'Continuous high'`, `'Self-timer 10 s'`, ...). | | | | - | - | | Id | `driveMode`, for [`setControl`](https://darkgrade.com/docs/slate/getting_started/camera.md#setcontrol) and `getCapabilities().controls.driveMode` | | Value type | [`DriveMode`](https://darkgrade.com/docs/slate/reference/types-setting-values.md#drivemode) | | How to use it | [Photos: Drive mode](https://darkgrade.com/docs/functionality/photos.md#drive-mode) | | Search words | *drive*, *release mode*, *burst*, *continuous shooting*, *still capture mode* | **Values** 191 named values. A camera offers only some of them: `getCapabilities().controls.driveMode.allowedValues` lists which, right now. ### Every named value (191) `Single` `Continuous` `Timelapse` `Continuous high` `Continuous high+` `Continuous high live` `Continuous low` `Continuous speed priority` `Continuous mid` `Continuous mid live` `Continuous low live` `Self-timer 5 s` `Self-timer 10 s` `Self-timer 2 s` `Continuous bracket 0.3 EV 2 frames +` `Continuous bracket 0.3 EV 2 frames -` `Continuous bracket 0.3 EV 3 frames` `Continuous bracket 0.3 EV 5 frames` `Continuous bracket 0.3 EV 7 frames` `Continuous bracket 0.3 EV 9 frames` `Continuous bracket 0.5 EV 2 frames +` `Continuous bracket 0.5 EV 2 frames -` `Continuous bracket 0.5 EV 3 frames` `Continuous bracket 0.5 EV 5 frames` `Continuous bracket 0.5 EV 7 frames` `Continuous bracket 0.5 EV 9 frames` `Continuous bracket 0.7 EV 2 frames +` `Continuous bracket 0.7 EV 2 frames -` `Continuous bracket 0.7 EV 3 frames` `Continuous bracket 0.7 EV 5 frames` `Continuous bracket 0.7 EV 7 frames` `Continuous bracket 0.7 EV 9 frames` `Continuous bracket 1.0 EV 2 frames +` `Continuous bracket 1.0 EV 2 frames -` `Continuous bracket 1.0 EV 3 frames` `Continuous bracket 1.0 EV 5 frames` `Continuous bracket 1.0 EV 7 frames` `Continuous bracket 1.0 EV 9 frames` `Continuous bracket 1.3 EV 2 frames +` `Continuous bracket 1.3 EV 2 frames -` `Continuous bracket 1.3 EV 3 frames` `Continuous bracket 1.3 EV 5 frames` `Continuous bracket 1.3 EV 7 frames` `Continuous bracket 1.5 EV 2 frames +` `Continuous bracket 1.5 EV 2 frames -` `Continuous bracket 1.5 EV 3 frames` `Continuous bracket 1.5 EV 5 frames` `Continuous bracket 1.5 EV 7 frames` `Continuous bracket 1.7 EV 2 frames +` `Continuous bracket 1.7 EV 2 frames -` `Continuous bracket 1.7 EV 3 frames` `Continuous bracket 1.7 EV 5 frames` `Continuous bracket 1.7 EV 7 frames` `Continuous bracket 2.0 EV 2 frames +` `Continuous bracket 2.0 EV 2 frames -` `Continuous bracket 2.0 EV 3 frames` `Continuous bracket 2.0 EV 5 frames` `Continuous bracket 2.0 EV 7 frames` `Continuous bracket 2.3 EV 2 frames +` `Continuous bracket 2.3 EV 2 frames -` `Continuous bracket 2.3 EV 3 frames` `Continuous bracket 2.3 EV 5 frames` `Continuous bracket 2.5 EV 2 frames +` `Continuous bracket 2.5 EV 2 frames -` `Continuous bracket 2.5 EV 3 frames` `Continuous bracket 2.5 EV 5 frames` `Continuous bracket 2.7 EV 2 frames +` `Continuous bracket 2.7 EV 2 frames -` `Continuous bracket 2.7 EV 3 frames` `Continuous bracket 2.7 EV 5 frames` `Continuous bracket 3.0 EV 2 frames +` `Continuous bracket 3.0 EV 2 frames -` `Continuous bracket 3.0 EV 3 frames` `Continuous bracket 3.0 EV 5 frames` `Single bracket 0.3 EV 2 frames +` `Single bracket 0.3 EV 2 frames -` `Single bracket 0.3 EV 3 frames` `Single bracket 0.3 EV 5 frames` `Single bracket 0.3 EV 7 frames` `Single bracket 0.3 EV 9 frames` `Single bracket 0.5 EV 2 frames +` `Single bracket 0.5 EV 2 frames -` `Single bracket 0.5 EV 3 frames` `Single bracket 0.5 EV 5 frames` `Single bracket 0.5 EV 7 frames` `Single bracket 0.5 EV 9 frames` `Single bracket 0.7 EV 2 frames +` `Single bracket 0.7 EV 2 frames -` `Single bracket 0.7 EV 3 frames` `Single bracket 0.7 EV 5 frames` `Single bracket 0.7 EV 7 frames` `Single bracket 0.7 EV 9 frames` `Single bracket 1.0 EV 2 frames +` `Single bracket 1.0 EV 2 frames -` `Single bracket 1.0 EV 3 frames` `Single bracket 1.0 EV 5 frames` `Single bracket 1.0 EV 7 frames` `Single bracket 1.0 EV 9 frames` `Single bracket 1.3 EV 2 frames +` `Single bracket 1.3 EV 2 frames -` `Single bracket 1.3 EV 3 frames` `Single bracket 1.3 EV 5 frames` `Single bracket 1.3 EV 7 frames` `Single bracket 1.5 EV 2 frames +` `Single bracket 1.5 EV 2 frames -` `Single bracket 1.5 EV 3 frames` `Single bracket 1.5 EV 5 frames` `Single bracket 1.5 EV 7 frames` `Single bracket 1.7 EV 2 frames +` `Single bracket 1.7 EV 2 frames -` `Single bracket 1.7 EV 3 frames` `Single bracket 1.7 EV 5 frames` `Single bracket 1.7 EV 7 frames` `Single bracket 2.0 EV 2 frames +` `Single bracket 2.0 EV 2 frames -` `Single bracket 2.0 EV 3 frames` `Single bracket 2.0 EV 5 frames` `Single bracket 2.0 EV 7 frames` `Single bracket 2.3 EV 2 frames +` `Single bracket 2.3 EV 2 frames -` `Single bracket 2.3 EV 3 frames` `Single bracket 2.3 EV 5 frames` `Single bracket 2.5 EV 2 frames +` `Single bracket 2.5 EV 2 frames -` `Single bracket 2.5 EV 3 frames` `Single bracket 2.5 EV 5 frames` `Single bracket 2.7 EV 2 frames +` `Single bracket 2.7 EV 2 frames -` `Single bracket 2.7 EV 3 frames` `Single bracket 2.7 EV 5 frames` `Single bracket 3.0 EV 2 frames +` `Single bracket 3.0 EV 2 frames -` `Single bracket 3.0 EV 3 frames` `Single bracket 3.0 EV 5 frames` `White balance bracket low` `White balance bracket high` `DRO bracket low` `DRO bracket high` `LPF bracket` `Remote commander` `Mirror up` `Self-portrait 1 person` `Self-portrait 2 people` `Continuous self-timer 3 frames` `Continuous self-timer 5 frames` `Continuous self-timer 3 frames 5 s` `Continuous self-timer 5 frames 5 s` `Continuous self-timer 3 frames 2 s` `Continuous self-timer 5 frames 2 s` `Spot burst low` `Spot burst mid` `Spot burst high` `Focus bracket` `Single soft` `Self-timer continuous` `Single silent` `Continuous soft` `Continuous silent high` `Continuous soft low` `Single bracket 2.5 EV` `Single bracket 1.5 EV` `Single bracket 1.3 EV` `Single bracket 0.7 EV` `Single bracket 0.5 EV` `Single bracket 0.3 EV` `Single bracket 1.0 EV` `Single bracket 1.7 EV` `Single bracket 2.0 EV` `Single bracket 2.3 EV` `Single bracket 2.7 EV` `Single bracket 3.0 EV` `Continuous bracket 2.5 EV` `Continuous bracket 1.5 EV` `Continuous bracket 1.3 EV` `Continuous bracket 0.7 EV` `Continuous bracket 0.5 EV` `Continuous bracket 0.3 EV` `Continuous bracket 1.0 EV` `Continuous bracket 1.7 EV` `Continuous bracket 2.0 EV` `Continuous bracket 2.3 EV` `Continuous bracket 2.7 EV` `Continuous bracket 3.0 EV` `Self-timer` `Quick setting` `Single bracket 1.5 EV 9 frames` `Single bracket 1.3 EV 9 frames` `Single bracket 1.7 EV 9 frames` `Continuous bracket 1.5 EV 9 frames` `Continuous bracket 1.3 EV 9 frames` `Continuous bracket 1.7 EV 9 frames` ### Protocol properties The properties Slate reads and writes for it, by brand. | Brand | Properties | | - | - | | PTP | [`StillCaptureMode`](https://darkgrade.com/docs/slate/ptp-reference/property-definitions.md#stillcapturemode-0x5013) (`0x5013`) | | Canon | `CanonDriveBracket`, [`CanonDriveMode`](https://darkgrade.com/docs/slate/ptp-reference/vendors/canon/canon-property-definitions.md#canondrivemode-0xd106) (`0xd106`) | | Nikon | `NikonDriveBracket` | ### getDriveMode `getDriveMode(): Promise` · MCP `camera_get_drive_mode` · CLI `darkgrade camera get-drive-mode` ### setDriveMode MCP `camera_set_drive_mode` · CLI `darkgrade camera set-drive-mode` ```typescript setDriveMode(value: DriveMode): Promise ``` Refuses a value the camera does not offer before sending anything, and resolves to the value read back. ## Photo format What a photo is saved as: RAW, JPEG, HEIF, or RAW with a JPEG or HEIF beside it. A photo format, in each vendor codec's own spelling: `'RAW'`, `'RAW+JPEG'`, `'JPEG'` on current Sony bodies; format and quality together (`'RAW+JPEG Fine'`, `'HEIF Standard'`) on Sony bodies with one combined setting; Canon's format with its size (`'RAW'`, `'cRAW+L'`, `'M'`). | | | | - | - | | Id | `photoFormat`, for [`setControl`](https://darkgrade.com/docs/slate/getting_started/camera.md#setcontrol) and `getCapabilities().controls.photoFormat` | | Value type | [`PhotoFormat`](https://darkgrade.com/docs/slate/reference/types-setting-values.md#photoformat) | | How to use it | [Photos: Photo format](https://darkgrade.com/docs/functionality/photos.md#photo-format) | | Search words | *still format*, *stillFormat*, *image format*, *imageFormat*, *file format*, *file type*, *image quality* | **Values** 440 named values. A camera offers only some of them: `getCapabilities().controls.photoFormat.allowedValues` lists which, right now. ### Every named value (440) `M` `S` `RAW` `RAW+JPEG` `JPEG` `JPEG Light` `JPEG Standard` `JPEG Fine` `JPEG Extra Fine` `RAW+JPEG Light` `RAW+JPEG Standard` `RAW+JPEG Fine` `RAW+JPEG Extra Fine` `HEIF Light` `HEIF Standard` `HEIF Fine` `HEIF Extra Fine` `RAW+HEIF Light` `RAW+HEIF Standard` `RAW+HEIF Fine` `RAW+HEIF Extra Fine` `L` `M1` `M2` `S1` `S2` `S3` `HEIF` `RAW+HEIF` `mRAW` `sRAW` `cRAW` `cL` `cM` `cS` `cS1` `cS2` `cS3` `cM1` `cM2` `M+M` `M+S` `M+RAW` `M+L` `M+M1` `M+M2` `M+S1` `M+S2` `M+S3` `M+mRAW` `M+sRAW` `M+cRAW` `M+cL` `M+cM` `M+cS` `M+cS1` `M+cS2` `M+cS3` `M+cM1` `M+cM2` `S+M` `S+S` `S+RAW` `S+L` `S+M1` `S+M2` `S+S1` `S+S2` `S+S3` `S+mRAW` `S+sRAW` `S+cRAW` `S+cL` `S+cM` `S+cS` `S+cS1` `S+cS2` `S+cS3` `S+cM1` `S+cM2` `RAW+M` `RAW+S` `RAW+RAW` `RAW+L` `RAW+M1` `RAW+M2` `RAW+S1` `RAW+S2` `RAW+S3` `RAW+mRAW` `RAW+sRAW` `RAW+cRAW` `RAW+cL` `RAW+cM` `RAW+cS` `RAW+cS1` `RAW+cS2` `RAW+cS3` `RAW+cM1` `RAW+cM2` `L+M` `L+S` `L+RAW` `L+L` `L+M1` `L+M2` `L+S1` `L+S2` `L+S3` `L+mRAW` `L+sRAW` `L+cRAW` `L+cL` `L+cM` `L+cS` `L+cS1` `L+cS2` `L+cS3` `L+cM1` `L+cM2` `M1+M` `M1+S` `M1+RAW` `M1+L` `M1+M1` `M1+M2` `M1+S1` `M1+S2` `M1+S3` `M1+mRAW` `M1+sRAW` `M1+cRAW` `M1+cL` `M1+cM` `M1+cS` `M1+cS1` `M1+cS2` `M1+cS3` `M1+cM1` `M1+cM2` `M2+M` `M2+S` `M2+RAW` `M2+L` `M2+M1` `M2+M2` `M2+S1` `M2+S2` `M2+S3` `M2+mRAW` `M2+sRAW` `M2+cRAW` `M2+cL` `M2+cM` `M2+cS` `M2+cS1` `M2+cS2` `M2+cS3` `M2+cM1` `M2+cM2` `S1+M` `S1+S` `S1+RAW` `S1+L` `S1+M1` `S1+M2` `S1+S1` `S1+S2` `S1+S3` `S1+mRAW` `S1+sRAW` `S1+cRAW` `S1+cL` `S1+cM` `S1+cS` `S1+cS1` `S1+cS2` `S1+cS3` `S1+cM1` `S1+cM2` `S2+M` `S2+S` `S2+RAW` `S2+L` `S2+M1` `S2+M2` `S2+S1` `S2+S2` `S2+S3` `S2+mRAW` `S2+sRAW` `S2+cRAW` `S2+cL` `S2+cM` `S2+cS` `S2+cS1` `S2+cS2` `S2+cS3` `S2+cM1` `S2+cM2` `S3+M` `S3+S` `S3+RAW` `S3+L` `S3+M1` `S3+M2` `S3+S1` `S3+S2` `S3+S3` `S3+mRAW` `S3+sRAW` `S3+cRAW` `S3+cL` `S3+cM` `S3+cS` `S3+cS1` `S3+cS2` `S3+cS3` `S3+cM1` `S3+cM2` `mRAW+M` `mRAW+S` `mRAW+RAW` `mRAW+L` `mRAW+M1` `mRAW+M2` `mRAW+S1` `mRAW+S2` `mRAW+S3` `mRAW+mRAW` `mRAW+sRAW` `mRAW+cRAW` `mRAW+cL` `mRAW+cM` `mRAW+cS` `mRAW+cS1` `mRAW+cS2` `mRAW+cS3` `mRAW+cM1` `mRAW+cM2` `sRAW+M` `sRAW+S` `sRAW+RAW` `sRAW+L` `sRAW+M1` `sRAW+M2` `sRAW+S1` `sRAW+S2` `sRAW+S3` `sRAW+mRAW` `sRAW+sRAW` `sRAW+cRAW` `sRAW+cL` `sRAW+cM` `sRAW+cS` `sRAW+cS1` `sRAW+cS2` `sRAW+cS3` `sRAW+cM1` `sRAW+cM2` `cRAW+M` `cRAW+S` `cRAW+RAW` `cRAW+L` `cRAW+M1` `cRAW+M2` `cRAW+S1` `cRAW+S2` `cRAW+S3` `cRAW+mRAW` `cRAW+sRAW` `cRAW+cRAW` `cRAW+cL` `cRAW+cM` `cRAW+cS` `cRAW+cS1` `cRAW+cS2` `cRAW+cS3` `cRAW+cM1` `cRAW+cM2` `cL+M` `cL+S` `cL+RAW` `cL+L` `cL+M1` `cL+M2` `cL+S1` `cL+S2` `cL+S3` `cL+mRAW` `cL+sRAW` `cL+cRAW` `cL+cL` `cL+cM` `cL+cS` `cL+cS1` `cL+cS2` `cL+cS3` `cL+cM1` `cL+cM2` `cM+M` `cM+S` `cM+RAW` `cM+L` `cM+M1` `cM+M2` `cM+S1` `cM+S2` `cM+S3` `cM+mRAW` `cM+sRAW` `cM+cRAW` `cM+cL` `cM+cM` `cM+cS` `cM+cS1` `cM+cS2` `cM+cS3` `cM+cM1` `cM+cM2` `cS+M` `cS+S` `cS+RAW` `cS+L` `cS+M1` `cS+M2` `cS+S1` `cS+S2` `cS+S3` `cS+mRAW` `cS+sRAW` `cS+cRAW` `cS+cL` `cS+cM` `cS+cS` `cS+cS1` `cS+cS2` `cS+cS3` `cS+cM1` `cS+cM2` `cS1+M` `cS1+S` `cS1+RAW` `cS1+L` `cS1+M1` `cS1+M2` `cS1+S1` `cS1+S2` `cS1+S3` `cS1+mRAW` `cS1+sRAW` `cS1+cRAW` `cS1+cL` `cS1+cM` `cS1+cS` `cS1+cS1` `cS1+cS2` `cS1+cS3` `cS1+cM1` `cS1+cM2` `cS2+M` `cS2+S` `cS2+RAW` `cS2+L` `cS2+M1` `cS2+M2` `cS2+S1` `cS2+S2` `cS2+S3` `cS2+mRAW` `cS2+sRAW` `cS2+cRAW` `cS2+cL` `cS2+cM` `cS2+cS` `cS2+cS1` `cS2+cS2` `cS2+cS3` `cS2+cM1` `cS2+cM2` `cS3+M` `cS3+S` `cS3+RAW` `cS3+L` `cS3+M1` `cS3+M2` `cS3+S1` `cS3+S2` `cS3+S3` `cS3+mRAW` `cS3+sRAW` `cS3+cRAW` `cS3+cL` `cS3+cM` `cS3+cS` `cS3+cS1` `cS3+cS2` `cS3+cS3` `cS3+cM1` `cS3+cM2` `cM1+M` `cM1+S` `cM1+RAW` `cM1+L` `cM1+M1` `cM1+M2` `cM1+S1` `cM1+S2` `cM1+S3` `cM1+mRAW` `cM1+sRAW` `cM1+cRAW` `cM1+cL` `cM1+cM` `cM1+cS` `cM1+cS1` `cM1+cS2` `cM1+cS3` `cM1+cM1` `cM1+cM2` `cM2+M` `cM2+S` `cM2+RAW` `cM2+L` `cM2+M1` `cM2+M2` `cM2+S1` `cM2+S2` `cM2+S3` `cM2+mRAW` `cM2+sRAW` `cM2+cRAW` `cM2+cL` `cM2+cM` `cM2+cS` `cM2+cS1` `cM2+cS2` `cM2+cS3` `cM2+cM1` `cM2+cM2` ### Protocol properties The properties Slate reads and writes for it, by brand. | Brand | Properties | | - | - | | Canon | [`CanonImageFormat`](https://darkgrade.com/docs/slate/ptp-reference/vendors/canon/canon-property-definitions.md#canonimageformat-0xd120) (`0xd120`), [`CanonImageFormatSd`](https://darkgrade.com/docs/slate/ptp-reference/vendors/canon/canon-property-definitions.md#canonimageformatsd-0xd122) (`0xd122`) | | Nikon | `NikonPhotoFileFormat` | | Sony | [`StillFileFormat`](https://darkgrade.com/docs/slate/ptp-reference/vendors/sony/sony-property-definitions.md#stillfileformat-0xd253) (`0xd253`), [`CompressionSetting`](https://darkgrade.com/docs/slate/ptp-reference/vendors/sony/sony-property-definitions.md#compressionsetting-0x5004) (`0x5004`) | ### getPhotoFormat `getPhotoFormat(): Promise` · MCP `camera_get_photo_format` · CLI `darkgrade camera get-photo-format` ### setPhotoFormat MCP `camera_set_photo_format` · CLI `darkgrade camera set-photo-format` ```typescript setPhotoFormat(value: PhotoFormat): Promise ``` Refuses a value the camera does not offer before sending anything, and resolves to the value read back. ## Photo size The pixel size of JPEG and HEIF photos. A photo size: Sony's codec names (`'Large'`, `'Medium'`, `'Small'`), or the pixel dimensions a standard body lists. The standard ImageSize property is a free-form string, which collapses the codec union to `string`; Sony's enumerated size names come from its own codec instead. | | | | - | - | | Id | `photoSize`, for [`setControl`](https://darkgrade.com/docs/slate/getting_started/camera.md#setcontrol) and `getCapabilities().controls.photoSize` | | Value type | [`PhotoSize`](https://darkgrade.com/docs/slate/reference/types-setting-values.md#photosize) | | How to use it | [Photos: Photo size](https://darkgrade.com/docs/functionality/photos.md#photo-size) | | Search words | *image size*, *imageSize*, *jpeg size* | **Values** Pattern `x`, and 3 named values. A camera offers only some of them: `getCapabilities().controls.photoSize.allowedValues` lists which, right now. `Large` `Medium` `Small` ### Protocol properties The properties Slate reads and writes for it, by brand. | Brand | Properties | | - | - | | PTP | [`ImageSize`](https://darkgrade.com/docs/slate/ptp-reference/property-definitions.md#imagesize-0x5003) (`0x5003`) | | Canon | `CanonPhotoSize` | | Sony | [`SonyImageSize`](https://darkgrade.com/docs/slate/ptp-reference/vendors/sony/sony-property-definitions.md#sonyimagesize-0xd203) (`0xd203`) | ### getPhotoSize `getPhotoSize(): Promise` · MCP `camera_get_photo_size` · CLI `darkgrade camera get-photo-size` ### setPhotoSize MCP `camera_set_photo_size` · CLI `darkgrade camera set-photo-size` ```typescript setPhotoSize(value: PhotoSize): Promise ``` Refuses a value the camera does not offer before sending anything, and resolves to the value read back. ## Aspect ratio The shape of the photo, or a crop of the sensor. | | | | - | - | | Id | `aspectRatio`, for [`setControl`](https://darkgrade.com/docs/slate/getting_started/camera.md#setcontrol) and `getCapabilities().controls.aspectRatio` | | Value type | [`AspectRatio`](https://darkgrade.com/docs/slate/reference/types-setting-values.md#aspectratio) | | How to use it | [Photos: Aspect ratio](https://darkgrade.com/docs/functionality/photos.md#aspect-ratio) | | Search words | *aspect ratio*, *image area*, *cropping* | | Retired spellings | `3:2 (1.6x crop)` is now `3:2 (APS-C crop)`; `3:2 (DX crop)` is now `3:2 (APS-C crop)` | **Values** 5 named values. A camera offers only some of them: `getCapabilities().controls.aspectRatio.allowedValues` lists which, right now. `3:2` `16:9` `4:3` `1:1` `3:2 (APS-C crop)` ### Protocol properties The properties Slate reads and writes for it, by brand. | Brand | Properties | | - | - | | Canon | [`CanonMultiAspect`](https://darkgrade.com/docs/slate/ptp-reference/vendors/canon/canon-property-definitions.md#canonmultiaspect-0xd194) (`0xd194`) | | Nikon | [`NikonCaptureAreaCrop`](https://darkgrade.com/docs/slate/ptp-reference/vendors/nikon/nikon-format-property-definitions.md#nikoncaptureareacrop-0xd030) (`0xd030`) | | Sony | [`AspectRatio`](https://darkgrade.com/docs/slate/ptp-reference/vendors/sony/sony-property-definitions.md#aspectratio-0xd211) (`0xd211`) | ### getAspectRatio `getAspectRatio(): Promise` · MCP `camera_get_aspect_ratio` · CLI `darkgrade camera get-aspect-ratio` ### setAspectRatio MCP `camera_set_aspect_ratio` · CLI `darkgrade camera set-aspect-ratio` ```typescript setAspectRatio(value: AspectRatio): Promise ``` Refuses a value the camera does not offer before sending anything, and resolves to the value read back. ## JPEG quality How much a JPEG is compressed: finer keeps more detail in a bigger file. | | | | - | - | | Id | `jpegQuality`, for [`setControl`](https://darkgrade.com/docs/slate/getting_started/camera.md#setcontrol) and `getCapabilities().controls.jpegQuality` | | Value type | [`JpegQuality`](https://darkgrade.com/docs/slate/reference/types-setting-values.md#jpegquality) | | How to use it | [Photos: JPEG quality](https://darkgrade.com/docs/functionality/photos.md#jpeg-quality) | | Search words | *jpeg quality*, *jpeg compression* | **Values** 9 named values. A camera offers only some of them: `getCapabilities().controls.jpegQuality.allowedValues` lists which, right now. `Normal` `Standard` `Light` `Extra Fine` `Fine` `Basic` `Basic★` `Normal★` `Fine★` ### Protocol properties The properties Slate reads and writes for it, by brand. | Brand | Properties | | - | - | | Canon | `CanonJpegQuality` | | Nikon | `NikonJpegQuality` | | Sony | [`JpegQuality`](https://darkgrade.com/docs/slate/ptp-reference/vendors/sony/sony-property-definitions.md#jpegquality-0xd252) (`0xd252`) | ### getJpegQuality `getJpegQuality(): Promise` · MCP `camera_get_jpeg_quality` · CLI `darkgrade camera get-jpeg-quality` ### setJpegQuality MCP `camera_set_jpeg_quality` · CLI `darkgrade camera set-jpeg-quality` ```typescript setJpegQuality(value: JpegQuality): Promise ``` Refuses a value the camera does not offer before sending anything, and resolves to the value read back. ## RAW compression How RAW files are compressed: lossless, compressed, or high efficiency. A NEF compression the body names; a raw number it reports without a name is not a value to write. | | | | - | - | | Id | `rawCompression`, for [`setControl`](https://darkgrade.com/docs/slate/getting_started/camera.md#setcontrol) and `getCapabilities().controls.rawCompression` | | Value type | [`RawCompression`](https://darkgrade.com/docs/slate/reference/types-setting-values.md#rawcompression) | | How to use it | [Photos: RAW compression](https://darkgrade.com/docs/functionality/photos.md#raw-compression) | | Search words | *raw compression*, *NEF compression*, *raw file type*, *ARW compression* | **Values** 4 named values. A camera offers only some of them: `getCapabilities().controls.rawCompression.allowedValues` lists which, right now. `Compressed` `Lossless` `High efficiency★` `High efficiency` ### Protocol properties The properties Slate reads and writes for it, by brand. | Brand | Properties | | - | - | | Canon | `CanonRawCompression` | | Nikon | [`NikonRawCompression`](https://darkgrade.com/docs/slate/ptp-reference/vendors/nikon/nikon-shooting-property-definitions.md#nikonrawcompression-0xd016) (`0xd016`) | | Sony | [`RawFileCompressionType`](https://darkgrade.com/docs/slate/ptp-reference/vendors/sony/sony-property-definitions.md#rawfilecompressiontype-0xd288) (`0xd288`) | ### getRawCompression `getRawCompression(): Promise` · MCP `camera_get_raw_compression` · CLI `darkgrade camera get-raw-compression` ### setRawCompression MCP `camera_set_raw_compression` · CLI `darkgrade camera set-raw-compression` ```typescript setRawCompression(value: RawCompression): Promise ``` Refuses a value the camera does not offer before sending anything, and resolves to the value read back. ## Flash Whether and how the flash fires. | | | | - | - | | Id | `flashMode`, for [`setControl`](https://darkgrade.com/docs/slate/getting_started/camera.md#setcontrol) and `getCapabilities().controls.flashMode` | | Value type | [`FlashMode`](https://darkgrade.com/docs/slate/reference/types-setting-values.md#flashmode) | | How to use it | [Photos: Flash](https://darkgrade.com/docs/functionality/photos.md#flash) | | Search words | *flash mode*, *flash* | **Values** 8 named values. A camera offers only some of them: `getCapabilities().controls.flashMode.allowedValues` lists which, right now. `Auto` `Off` `Fill` `Red-eye auto` `Red-eye fill` `External sync` `Slow sync` `Rear sync` ### Protocol properties The properties Slate reads and writes for it, by brand. | Brand | Properties | | - | - | | PTP | [`FlashMode`](https://darkgrade.com/docs/slate/ptp-reference/property-definitions.md#flashmode-0x500c) (`0x500c`) | ### getFlashMode `getFlashMode(): Promise` · MCP `camera_get_flash_mode` · CLI `darkgrade camera get-flash-mode` ### setFlashMode MCP `camera_set_flash_mode` · CLI `darkgrade camera set-flash-mode` ```typescript setFlashMode(value: FlashMode): Promise ``` Refuses a value the camera does not offer before sending anything, and resolves to the value read back. ## Shutter type Which shutter takes the photo: mechanical, electronic (silent), or electronic first curtain. Which shutter takes a photo: mechanical, electronic front curtain, fully electronic, or the camera's choice. | | | | - | - | | Id | `shutterType`, for [`setControl`](https://darkgrade.com/docs/slate/getting_started/camera.md#setcontrol) and `getCapabilities().controls.shutterType` | | Value type | `ShutterType` | | How to use it | [Photos: Shutter type](https://darkgrade.com/docs/functionality/photos.md#shutter-type) | | Search words | *shutter type*, *electronic shutter*, *silent shutter*, *electronic front curtain*, *front curtain*, *EFCS* | **Values** 4 named values. A camera offers only some of them: `getCapabilities().controls.shutterType.allowedValues` lists which, right now. `Auto` `Mechanical` `Electronic` `Electronic front curtain` ### Protocol properties The properties Slate reads and writes for it, by brand. | Brand | Properties | | - | - | | Canon | [`CanonShutterType`](https://darkgrade.com/docs/slate/ptp-reference/vendors/canon/canon-property-definitions.md#canonshuttertype-0xd21a) (`0xd21a`) | | Nikon | [`NikonShutterType`](https://darkgrade.com/docs/slate/ptp-reference/vendors/nikon/nikon-format-property-definitions.md#nikonshuttertype-0xd20d) (`0xd20d`) | | Sony | [`ShutterType`](https://darkgrade.com/docs/slate/ptp-reference/vendors/sony/sony-property-definitions.md#shuttertype-0xd0df) (`0xd0df`) | ### getShutterType `getShutterType(): Promise` · MCP `camera_get_shutter_type` · CLI `darkgrade camera get-shutter-type` ### setShutterType MCP `camera_set_shutter_type` · CLI `darkgrade camera set-shutter-type` ```typescript setShutterType(value: ShutterType): Promise ``` Refuses a value the camera does not offer before sending anything, and resolves to the value read back. ## Other settings > [card] [Exposure settings](https://darkgrade.com/docs/slate/reference/settings-exposure.md) > > How bright the picture is: shutter speed, ISO, aperture and the modes around them. > [card] [Video settings](https://darkgrade.com/docs/slate/reference/settings-video.md) > > What a recording is: the photo or video mode, the format, quality and frame rate, and sound. > [card] [Colour and look settings](https://darkgrade.com/docs/slate/reference/settings-color.md) > > The colour of the light and how the camera renders it: white balance, colour temperature, the look and the picture profile. > [card] [Focus settings](https://darkgrade.com/docs/slate/reference/settings-focus.md) > > How the camera finds and follows a subject: focus mode and area, and subject detection. > [card] [Zoom and stabilisation settings](https://darkgrade.com/docs/slate/reference/settings-zoom.md) > > The two settings beside the zoom operations: image stabilisation and digital zoom. > [card] [Live view settings](https://darkgrade.com/docs/slate/reference/settings-live-view.md) > > The one setting of the live picture: its quality. ## Related > [card] [Camera](https://darkgrade.com/docs/slate/getting_started/camera.md) > > The class: constructor, every method, what each returns and throws. > [card] [Settings](https://darkgrade.com/docs/slate/reference/settings.md) > > Every setting id with its values, getter, setter and vendor properties. > [card] [Types](https://darkgrade.com/docs/slate/reference/types.md) > > Every exported type, field by field. > [card] [Errors](https://darkgrade.com/docs/slate/reference/errors.md) > > Every error class: when it is thrown and what to do. > [card] [Entry points](https://darkgrade.com/docs/slate/reference/entry-points.md) > > Every import path of the package and what it exports.