https://github.com/dhth/squish
resize images via the command line
https://github.com/dhth/squish
image-resizer image-resizing
Last synced: 10 months ago
JSON representation
resize images via the command line
- Host: GitHub
- URL: https://github.com/dhth/squish
- Owner: dhth
- Created: 2025-01-07T16:09:21.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-23T14:14:56.000Z (11 months ago)
- Last Synced: 2025-02-23T15:23:07.929Z (11 months ago)
- Topics: image-resizer, image-resizing
- Language: Rust
- Homepage: https://tools.dhruvs.space/squish
- Size: 86.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# squish
✨ Overview
---
`squish` lets you resize images via the command line.

💾 Installation
---
**cargo**:
```sh
cargo install --git https://github.com/dhth/squish.git
```
⚡️ Usage
---
### Help
```text
Usage: squish [OPTIONS]
Arguments:
Local file path, or "cb" for system clipboard
Options:
-w, --width Width of resized image [default: 800]
-o, --output-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 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
```bash
# 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](https://github.com/dhth/squish/issues) is very much
appreciated.