--- title: "Photos: take a photo from your computer" description: "Take a photo on a Sony, Canon or Nikon camera from your computer, to the card or the computer, and set drive mode, shutter type, flash, format and quality." url: https://darkgrade.com/docs/functionality/photos last_updated: 2026-12-04 docs_index: https://darkgrade.com/docs/llms.txt --- # Photos: take a photo from your computer > Take a photo on a Sony, Canon or Nikon camera from your computer, to the card or the computer, and set drive mode, shutter type, flash, format and quality. > ## 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. Take a photo on a Sony, Canon or Nikon camera from your computer and get its file name back once the camera has saved it. This is tethered shooting: the computer fires the shutter and can receive the file. The settings below decide what the file is. Your camera takes only the values it offers right now and refuses the rest: [what the camera can do](https://darkgrade.com/docs/functionality/connection.md#what-the-camera-can-do) lists them. Every change answers with the value the camera reports afterwards, so you know it took. | What | Does | | - | - | | [Take a photo](#take-a-photo) | Take one photo and get its file name. | | [Drive mode](#drive-mode) | Single, burst, self-timer or bracket. | | [Shutter type](#shutter-type) | Mechanical, electronic or first curtain. | | [Flash](#flash) | Whether and how the flash fires. | | [Photo format](#photo-format) | RAW, JPEG, HEIF, or RAW with a JPEG. | | [Photo size](#photo-size) | The pixel size of JPEG and HEIF photos. | | [Aspect ratio](#aspect-ratio) | The shape of the photo. | | [JPEG quality](#jpeg-quality) | How much a JPEG is compressed. | | [RAW compression](#raw-compression) | How RAW files are compressed. | Each example has a tab per product. Pick yours once and every example follows. In Studio, the microphone that starts [voice](https://darkgrade.com/docs/studio/voice.md) is under the picture. MCP tabs show the tool Claude calls on Studio; on [your own server](https://darkgrade.com/docs/ai/server.md#what-differs-from-studio) the tools also take `camera`. Each CLI command opens the camera, does one thing and closes it. ## Take a photo Takes one photo and returns once the camera has saved it, with its file name and size. ```text Studio Click Take photo under the picture, or press Return. The photo is copied to your Mac too. Or click the microphone and say “Take a photo”. A photo taken by voice stays on the card. ``` ```text MCP Ask Claude: “Take a photo.” → camera_take_photo {} ``` ```bash CLI npx darkgrade camera take-photo ``` ```typescript Slate const photo = await camera.takePhoto() // { destination: 'card', mediaId, name, sizeBytes } ``` **Get the photo on your computer.** Ask for the photo to come to the computer too. It is still saved on the card, unless you choose `computerOnly`. ```text Studio The Take photo button does this every time: the photo is also copied to Darkgrade Studio in your Pictures folder. ``` ```text MCP → camera_take_photo {"destination": "computer"} Studio's server does not save the file; your own server saves it where its saveFile says. ``` ```bash CLI # Saved in this folder under the camera's own file name. # --output picks another name. npx darkgrade camera take-photo --destination computer ``` ```typescript Slate import { writeFile } from 'node:fs/promises' const photo = await camera.takePhoto({ destination: 'computer' }) await writeFile(photo.name, photo.data) // photo.data: the bytes ``` ### Inputs - **`autofocus`** · true or false · CLI `--[no-]autofocus` Default true: focus before the shutter. False takes the photo without waiting for focus. - **`destination`** · `card` `computer` `computerOnly` · CLI `--destination` Default `card`. `computer` saves the photo to the card and also returns its bytes. `computerOnly` sends it to the computer without saving it to the card. - **`download`** · true or false · CLI `--[no-]download` Default true. False keeps every byte of the photo on the camera. Only with destination `card`. - **`rawCompression`** · `Compressed` `Lossless` `High efficiency★` `High efficiency` · CLI `--raw-compression` [RAW compression](https://darkgrade.com/docs/functionality/photos.md#raw-compression) for this photo only, put back afterwards, such as `Lossless`. - **`includeInfo`** · true or false · CLI `--[no-]include-info` Also return the camera's own description of the photo (its PTP [ObjectInfo](https://darkgrade.com/docs/slate/ptp-reference/datasets/object-info-dataset.md)), as `info`. ### What you get back Slate returns a [`Photo`](https://darkgrade.com/docs/slate/reference/types-results.md#photo). [MCP](https://darkgrade.com/docs/ai/results.md#what-a-tool-returns) and the [CLI](https://darkgrade.com/docs/cli/output.md#json-results) return the same fields as JSON. - **`destination`** · `"card"` `"computer"` `"computerOnly"` Where the photo went. - **`mediaId`** · `string` · optional The photo's id on the card, the same one [the file list](https://darkgrade.com/docs/functionality/media.md#list-photos-and-clips) gives it. Left out for `computerOnly`, and on a camera that cannot list its card. - **`name`** · `string` The file name the camera gave the photo, such as `DSC01234.JPG`. - **`sizeBytes`** · `number` The size of the file, in bytes. - **`info`** · `ObjectInfo` · optional With `includeInfo`: the camera's own description of the photo, a PTP [ObjectInfo](https://darkgrade.com/docs/slate/ptp-reference/datasets/object-info-dataset.md). - **`data`** · `Uint8Array` · optional The photo's bytes, for `computer` and `computerOnly`. A photo sent to the computer is never inside the JSON: `data` becomes `{ file, bytes }`. The CLI saves the photo in the current folder under the camera's own file name, unless `--output` names a file. Over MCP the photo is not attached. - The shutter command is sent once. If the camera never confirms the photo, you get an error, never a second photo. - Refused while the camera is recording. - A camera in video mode is switched to photo mode for the shot, and switched back afterwards. - Over MCP, Claude gets the file name and size, never the picture. To show Claude a photo, ask for its [preview](https://darkgrade.com/docs/functionality/media.md#preview-a-file). Also called *capture*, *capture photo*, *shoot*, *snap*, *release shutter*, *shutter*, *press shutter*, *S2*, *remote release*. Slate reference: [`takePhoto`](https://darkgrade.com/docs/slate/getting_started/camera.md#takephoto) ## Drive mode What one press of the shutter does: one photo, a burst, a self-timer, or an exposure bracket. ```text Studio Click the microphone and say “Drive mode to continuous high”, or ask “What's the drive mode?” ``` ```text MCP Ask Claude: “Drive mode to continuous high.” → camera_set_drive_mode {"value": "Continuous high"} Ask Claude: “What's the drive mode?” → camera_get_drive_mode {} ``` ```bash CLI npx darkgrade camera set-drive-mode 'Continuous high' npx darkgrade camera get-drive-mode ``` ```typescript Slate await camera.setDriveMode('Continuous high') const driveMode = await camera.getDriveMode() // 'Continuous high' ``` **Values** `Single` `Continuous high` `Continuous low` `Self-timer 10 s` `Self-timer 2 s` and more. Brackets are named by step and frame count, such as `Continuous bracket 1.0 EV 3 frames`. The [settings reference](https://darkgrade.com/docs/slate/reference/settings-photos.md#drive-mode) lists all 191. Also called *release mode*, *burst*, *continuous shooting*, *still capture mode*. Slate reference: [Drive mode](https://darkgrade.com/docs/slate/reference/settings-photos.md#drive-mode) ## Shutter type Which shutter takes the photo: mechanical, electronic (silent), or electronic first curtain. ```text Studio Click the microphone and say “Use the electronic shutter”, or ask “Which shutter is it using?” ``` ```text MCP Ask Claude: “Use the electronic shutter.” → camera_set_shutter_type {"value": "Electronic"} Ask Claude: “Which shutter is it using?” → camera_get_shutter_type {} ``` ```bash CLI npx darkgrade camera set-shutter-type Electronic npx darkgrade camera get-shutter-type ``` ```typescript Slate await camera.setShutterType('Electronic') const shutterType = await camera.getShutterType() // 'Electronic' ``` **Values** `Auto` `Mechanical` `Electronic` `Electronic front curtain`. Also called *electronic shutter*, *silent shutter*, *electronic front curtain*, *front curtain*, *EFCS*. Slate reference: [Shutter type](https://darkgrade.com/docs/slate/reference/settings-photos.md#shutter-type) ## Flash Whether and how the flash fires. ```text Studio Click the microphone and say “Turn the flash off”, or ask “What's the flash set to?” ``` ```text MCP Ask Claude: “Turn the flash off.” → camera_set_flash_mode {"value": "Off"} Ask Claude: “What's the flash set to?” → camera_get_flash_mode {} ``` ```bash CLI npx darkgrade camera set-flash-mode Off npx darkgrade camera get-flash-mode ``` ```typescript Slate await camera.setFlashMode('Off') const flashMode = await camera.getFlashMode() // 'Off' ``` **Values** `Off` `Auto` `Fill` `Rear sync` and more. ### All values (8) `Off` `Auto` `Fill` `Rear sync` `Red-eye auto` `Red-eye fill` `External sync` `Slow sync` Also called *flash mode*. Slate reference: [Flash](https://darkgrade.com/docs/slate/reference/settings-photos.md#flash) ## Photo format What a photo is saved as: RAW, JPEG, HEIF, or RAW with a JPEG or HEIF beside it. ```text Studio In the sidebar, choose Recording › Photo › Format. Or click the microphone and say “Shoot RAW plus JPEG”, or ask “What format are photos saved in?” ``` ```text MCP Ask Claude: “Shoot RAW plus JPEG.” → camera_set_photo_format {"value": "RAW+JPEG"} Ask Claude: “What format are photos saved in?” → camera_get_photo_format {} ``` ```bash CLI npx darkgrade camera set-photo-format RAW+JPEG npx darkgrade camera get-photo-format ``` ```typescript Slate await camera.setPhotoFormat('RAW+JPEG') const photoFormat = await camera.getPhotoFormat() // 'RAW+JPEG' ``` **Values** `RAW` `JPEG` `HEIF` `RAW+JPEG` `RAW+HEIF` `JPEG Fine` and more. Canon sizes combine, as in `RAW+L` or `cRAW+M1`. The [settings reference](https://darkgrade.com/docs/slate/reference/settings-photos.md#photo-format) lists all 440. Also called *still format*, *image format*, *file format*, *file type*, *image quality*. Slate reference: [Photo format](https://darkgrade.com/docs/slate/reference/settings-photos.md#photo-format) ## Photo size The pixel size of JPEG and HEIF photos. ```text Studio In the sidebar, choose Recording › Photo › Size. Or click the microphone and say “Large photos”, or ask “What size are the photos?” ``` ```text MCP Ask Claude: “Large photos.” → camera_set_photo_size {"value": "Large"} Ask Claude: “What size are the photos?” → camera_get_photo_size {} ``` ```bash CLI npx darkgrade camera set-photo-size Large npx darkgrade camera get-photo-size ``` ```typescript Slate await camera.setPhotoSize('Large') const photoSize = await camera.getPhotoSize() // 'Large' ``` **Values** `Large` `Medium` `Small` and more. Some cameras name a size by its width and height in pixels instead. ### All values (3, plus patterns) Written as `x`, or one of: `Large` `Medium` `Small` Also called *image size*, *jpeg size*. Slate reference: [Photo size](https://darkgrade.com/docs/slate/reference/settings-photos.md#photo-size) ## Aspect ratio The shape of the photo, or a crop of the sensor. ```text Studio In the sidebar, choose Recording › Photo › Aspect. Or click the microphone and say “Aspect ratio sixteen by nine”, or ask “What's the aspect ratio?” ``` ```text MCP Ask Claude: “Aspect ratio sixteen by nine.” → camera_set_aspect_ratio {"value": "16:9"} Ask Claude: “What's the aspect ratio?” → camera_get_aspect_ratio {} ``` ```bash CLI npx darkgrade camera set-aspect-ratio 16:9 npx darkgrade camera get-aspect-ratio ``` ```typescript Slate await camera.setAspectRatio('16:9') const aspectRatio = await camera.getAspectRatio() // '16:9' ``` **Values** `3:2` `16:9` `4:3` `1:1` and more. ### All values (5) `3:2` `16:9` `4:3` `1:1` `3:2 (APS-C crop)` Also called *image area*, *cropping*. Slate reference: [Aspect ratio](https://darkgrade.com/docs/slate/reference/settings-photos.md#aspect-ratio) ## JPEG quality How much a JPEG is compressed: finer keeps more detail in a bigger file. ```text Studio In the sidebar, choose Recording › Photo › JPEG quality. Or click the microphone and say “Fine JPEG quality”, or ask “What's the JPEG quality?” ``` ```text MCP Ask Claude: “Fine JPEG quality.” → camera_set_jpeg_quality {"value": "Fine"} Ask Claude: “What's the JPEG quality?” → camera_get_jpeg_quality {} ``` ```bash CLI npx darkgrade camera set-jpeg-quality Fine npx darkgrade camera get-jpeg-quality ``` ```typescript Slate await camera.setJpegQuality('Fine') const jpegQuality = await camera.getJpegQuality() // 'Fine' ``` **Values** `Extra Fine` `Fine` `Standard` `Normal` and more. ### All values (9) `Extra Fine` `Fine` `Standard` `Normal` `Light` `Basic` `Basic★` `Normal★` `Fine★` Also called *jpeg compression*. Slate reference: [JPEG quality](https://darkgrade.com/docs/slate/reference/settings-photos.md#jpeg-quality) ## RAW compression How RAW files are compressed: lossless, compressed, or high efficiency. ```text Studio Click the microphone and say “Lossless RAW”, or ask “How are RAW files compressed?” ``` ```text MCP Ask Claude: “Lossless RAW.” → camera_set_raw_compression {"value": "Lossless"} Ask Claude: “How are RAW files compressed?” → camera_get_raw_compression {} ``` ```bash CLI npx darkgrade camera set-raw-compression Lossless npx darkgrade camera get-raw-compression ``` ```typescript Slate await camera.setRawCompression('Lossless') const rawCompression = await camera.getRawCompression() // 'Lossless' ``` **Values** `Lossless` `Compressed` `High efficiency` and more. ### All values (4) `Lossless` `Compressed` `High efficiency` `High efficiency★` Also called *NEF compression*, *raw file type*, *ARW compression*. Slate reference: [RAW compression](https://darkgrade.com/docs/slate/reference/settings-photos.md#raw-compression)