Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8037

Camera board • Re: write image to SD card

$
0
0
When I use the command

Code:

rpicam-still --raw --output test.jpg
the image is saved on the raspberry pi 5 itself I think.

It will be saved in in whatever directory is current when you run the command. Doesn't matter whether that's on the SD card or a USB drive.

If you open a terminal (or log in to the command line) you'll be initially in your users home directory e.g. /home/pi If you run that command there that's where test.jpg will be saved.

If you want it saved somewhere else you need to provide a path as well as a file name e.g. /home/pi/test.jpg or cd to that directory (cd /home/pi)before running the command. Paths without a leading / are relative to the current directory. Paths with a leading / are treated as absolute and start from the root of the file system.

For saving to a USB drive you need to mount it first or let the desktop's automounter do that for you. That's a topic in and of itself.

Statistics: Posted by thagrol — Tue Mar 11, 2025 3:46 pm



Viewing all articles
Browse latest Browse all 8037

Trending Articles