Take Some Photos

After you’ve connected the camera and installed the drivers, it’s easy to take some photos. The tool for the job is raspistill. When you call it without any arguments, it prints a long list of options.

 
$ ​raspistill

Before we play with the options, let’s take an initial test photo. Run the following command and point the camera to something that looks interesting.

 
$ ​raspistill -o first.jpg

This command will take a photo and write it to a file named first.jpg. Before the camera actually captures the photo, it’ll show a preview on the screen for five seconds. Note that you don’t have to start a graphical desktop environment to work with the camera. It will work just fine using a plain text terminal.

If you’d like to ...

Get Raspberry Pi, 2nd Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.