Skip to content

Repository files navigation

squish

Build status

squish lets you resize images via the command line.

demo

💾 Installation

cargo:

cargo install --git https://github.com/dhth/squish.git

⚡️ Usage

Help

Usage: squish [OPTIONS] <INPUT>
Arguments:
<INPUT> Local file path, or "cb" for system clipboard
Options:
-w, --width <INTEGER> Width of resized image [default: 800]
-o, --output-file <FILE> Destination of resized output file
-c, --copy-to-clipboard Whether to copy resized image to clipboard (only supported for PNG images)
-b, --blur-strength <INTEGER> Blur strength [default: 0]
-v, --verbose Whether to print updates
-m, --print-markdown-address Whether to print address of output file in markdown format
-h, --help Print help

Basic Usage

# resize clipboard contents, and write them back to clipboard
squish -c cb # resize clipboard contents, and write them to a file
squish -o path/to/output/image.png cb
# resize a local file, and write resized contents to a file
squish -o path/to/output/image.png path/to/input/image.png
# resize a local file, and write resized contents to a file and the clipboard
squish -o path/to/output/image.png -c path/to/input/image.png

ℹ️ Disclaimer

squish has only been tested on macOS so far. Feedback on any bugs on Linux/Windows via issues is very much appreciated.

About

resize images via the command line

Topics

Resources

Stars

5 stars

Watchers

1 watching

Forks

Contributors

Languages