Picsum is a command-line client designed to fetch random images from picsum.photos. This tool simplifies the process of downloading high-quality images directly from the command line.
Key Features:
Fetches random or specific images using an ID or seed for reproducibility.
Supports image manipulation, including grayscale conversion and adjustable blur effects.
Outputs images to a specified file path with options for overwriting files.
Audience & Benefit:
Ideal for developers, photographers, and content creators who need quick access to random or customizable images. Picsum streamlines workflows by enabling precise control over image size, ID, seed, and output location.
Picsum can be installed via winget for ease of use on supported platforms.
NAME:
picsum - fetch photo from https://picsum.photos
USAGE:
picsum [global options]
VERSION:
1.0.0
GLOBAL OPTIONS:
--id string, -i string specific image ID from picsum.photos
--seed string, -s string seed for random image generation from picsum.photos
--gray, -g convert image to grayscale
--blur, -b apply blur effect to image
--blurlevel int, -B int apply blur effect with specific level 1-10 (supersedes -b) (default: 0)
--quiet, -q suppress output messages
--output string, -o string output file path
--force, -f overwrite existing file without prompting
--build print build info and exit
--help, -h show help
--version, -v print the version
Examples
$ picsum 200
$ picsum 200 300
picsum 200 fetches a square 200×200 image. picsum 200 300 fetches a 200×300 (width × height) image.
Installation
See Installation.md for Homebrew, Linux packages, Windows winget, and manual binary installs.