HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

rpicam-jpeg — Capture and store a JPEG image using a Raspberry Pi camera. More information: <https://www.raspberry

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandrpicam-jpegandstorejpegcliimagecapture
linux

Problem

How to use the rpicam-jpeg command: Capture and store a JPEG image using a Raspberry Pi camera. More information: <https://www.raspberrypi.com/documentation/computers/camera_software.html#rpicam-jpeg>.

Solution

rpicam-jpeg — Capture and store a JPEG image using a Raspberry Pi camera. More information: <https://www.raspberrypi.com/documentation/computers/camera_software.html#rpicam-jpeg>.

Capture an image and name the file:
rpicam-jpeg {{[-o|--output]}} {{path/to/file.jpg}}


Capture an image with set dimensions:
rpicam-jpeg {{[-o|--output]}} {{path/to/file.jpg}} --width {{1920}} --height {{1080}}


Capture an image with an exposure of 20 seconds and a gain of 150%:
rpicam-jpeg {{[-o|--output]}} {{path/to/file.jpg}} --shutter 20000 --gain 1.5

Code Snippets

Capture an image and name the file

rpicam-jpeg {{[-o|--output]}} {{path/to/file.jpg}}

Capture an image with set dimensions

rpicam-jpeg {{[-o|--output]}} {{path/to/file.jpg}} --width {{1920}} --height {{1080}}

Capture an image with an exposure of 20 seconds and a gain of 150%

rpicam-jpeg {{[-o|--output]}} {{path/to/file.jpg}} --shutter 20000 --gain 1.5

Context

tldr-pages: linux/rpicam-jpeg

Revisions (0)

No revisions yet.