██████╗ ██╗ ██████╗███████╗████████╗
██╔══██╗██║██╔════╝██╔════╝╚══██╔══╝
██████╔╝██║██║ ███████╗ ██║
██╔═══╝ ██║██║ ╚════██║ ██║
██║ ██║╚██████╗███████║ ██║
╚═╝ ╚═╝ ╚═════╝╚══════╝ ╚═╝
picst is a small cross-platform CLI tool aiming at making the "copy → resize → paste" image workflow super simple and more friendly.
Start picst, copy an image, eventually provide new dimensions if not passed via the flags, paste it anywhere - a piece of cake 🍰!
cargo install picstBinaries for new releases are also available here.
picst is able to manage three different kind of unit to resize images: percent | pixels | ratio.
Note: picst will keep running and checking for new images copied in the clipboard until the process is stopped.
Use the --height-percent or the --width-percent flags:
picst --height-percent 30picst --width-percent 50By default, picst preserves the aspect ratio of the image and will adjust the other dimension accordingly.
You can either skip this behavior with the --ignore-aspect-ratio flag - the tool will then prompt you for the other dimension - or you can directly set both flags:
picst --height-percent 30 --width-percent 50Use the --height or the --width flags:
picst --height 300picst --width 500By default, picst preserves the aspect ratio of the image and will adjust the other dimension accordingly.
You can either skip this behavior with the --ignore-aspect-ratio flag - the tool will then prompt you for the other dimension - or you can directly set both flags:
picst --height 300 --width 500Use the --ratio flag:
picst --ratio 0.7If no flags are passed to the tool, a complete wizard will be presented to you:
picstPixel --------┐
|---> Height* | Width* | Both ---> value(s)
Percentage ---┘
Ratio ------------> value- With Height and Width, the aspect ratio will be preserved.