Skip to main content
SettingsPhoto settings

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, which names every setting. Photos shows each at work in Studio, MCP, the CLI and Slate.

Read and write one with its typed getter and setter, or with 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 before sending anything; a getter throws CameraUnsupportedError when the setting is absent or does not apply in the current mode.

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', ...).

IddriveMode, for setControl and getCapabilities().controls.driveMode
Value typeDriveMode
How to use itPhotos: Drive mode
Search wordsdrive, 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.

BrandProperties
PTPStillCaptureMode (0x5013)
CanonCanonDriveBracket, CanonDriveMode (0xd106)
NikonNikonDriveBracket

getDriveMode

getDriveMode(): Promise<DriveMode> · MCP camera_get_drive_mode · CLI darkgrade camera get-drive-mode

setDriveMode

MCP camera_set_drive_mode · CLI darkgrade camera set-drive-mode

setDriveMode(value: DriveMode): Promise<DriveMode>

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').

IdphotoFormat, for setControl and getCapabilities().controls.photoFormat
Value typePhotoFormat
How to use itPhotos: Photo format
Search wordsstill 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+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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.

BrandProperties
CanonCanonImageFormat (0xd120), CanonImageFormatSd (0xd122)
NikonNikonPhotoFileFormat
SonyStillFileFormat (0xd253), CompressionSetting (0x5004)

getPhotoFormat

getPhotoFormat(): Promise<PhotoFormat> · MCP camera_get_photo_format · CLI darkgrade camera get-photo-format

setPhotoFormat

MCP camera_set_photo_format · CLI darkgrade camera set-photo-format

setPhotoFormat(value: PhotoFormat): Promise<PhotoFormat>

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.

IdphotoSize, for setControl and getCapabilities().controls.photoSize
Value typePhotoSize
How to use itPhotos: Photo size
Search wordsimage size, imageSize, jpeg size

Values Pattern <number>x<number>, 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.

BrandProperties
PTPImageSize (0x5003)
CanonCanonPhotoSize
SonySonyImageSize (0xd203)

getPhotoSize

getPhotoSize(): Promise<PhotoSize> · MCP camera_get_photo_size · CLI darkgrade camera get-photo-size

setPhotoSize

MCP camera_set_photo_size · CLI darkgrade camera set-photo-size

setPhotoSize(value: PhotoSize): Promise<PhotoSize>

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.

IdaspectRatio, for setControl and getCapabilities().controls.aspectRatio
Value typeAspectRatio
How to use itPhotos: Aspect ratio
Search wordsaspect ratio, image area, cropping
Retired spellings3: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.

BrandProperties
CanonCanonMultiAspect (0xd194)
NikonNikonCaptureAreaCrop (0xd030)
SonyAspectRatio (0xd211)

getAspectRatio

getAspectRatio(): Promise<AspectRatio> · MCP camera_get_aspect_ratio · CLI darkgrade camera get-aspect-ratio

setAspectRatio

MCP camera_set_aspect_ratio · CLI darkgrade camera set-aspect-ratio

setAspectRatio(value: AspectRatio): Promise<AspectRatio>

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.

IdjpegQuality, for setControl and getCapabilities().controls.jpegQuality
Value typeJpegQuality
How to use itPhotos: JPEG quality
Search wordsjpeg 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.

BrandProperties
CanonCanonJpegQuality
NikonNikonJpegQuality
SonyJpegQuality (0xd252)

getJpegQuality

getJpegQuality(): Promise<JpegQuality> · MCP camera_get_jpeg_quality · CLI darkgrade camera get-jpeg-quality

setJpegQuality

MCP camera_set_jpeg_quality · CLI darkgrade camera set-jpeg-quality

setJpegQuality(value: JpegQuality): Promise<JpegQuality>

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.

IdrawCompression, for setControl and getCapabilities().controls.rawCompression
Value typeRawCompression
How to use itPhotos: RAW compression
Search wordsraw 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.

BrandProperties
CanonCanonRawCompression
NikonNikonRawCompression (0xd016)
SonyRawFileCompressionType (0xd288)

getRawCompression

getRawCompression(): Promise<RawCompression> · MCP camera_get_raw_compression · CLI darkgrade camera get-raw-compression

setRawCompression

MCP camera_set_raw_compression · CLI darkgrade camera set-raw-compression

setRawCompression(value: RawCompression): Promise<RawCompression>

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.

IdflashMode, for setControl and getCapabilities().controls.flashMode
Value typeFlashMode
How to use itPhotos: Flash
Search wordsflash 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.

BrandProperties
PTPFlashMode (0x500c)

getFlashMode

getFlashMode(): Promise<FlashMode> · MCP camera_get_flash_mode · CLI darkgrade camera get-flash-mode

setFlashMode

MCP camera_set_flash_mode · CLI darkgrade camera set-flash-mode

setFlashMode(value: FlashMode): Promise<FlashMode>

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.

IdshutterType, for setControl and getCapabilities().controls.shutterType
Value typeShutterType
How to use itPhotos: Shutter type
Search wordsshutter 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.

BrandProperties
CanonCanonShutterType (0xd21a)
NikonNikonShutterType (0xd20d)
SonyShutterType (0xd0df)

getShutterType

getShutterType(): Promise<ShutterType> · MCP camera_get_shutter_type · CLI darkgrade camera get-shutter-type

setShutterType

MCP camera_set_shutter_type · CLI darkgrade camera set-shutter-type

setShutterType(value: ShutterType): Promise<ShutterType>

Refuses a value the camera does not offer before sending anything, and resolves to the value read back.

Other settings

⌘I