Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chrisseto/setaspect
a simple CLI to adjust the aspect ratio of PNG images by adding transparent padding.
https://github.com/chrisseto/setaspect
Last synced: about 1 month ago
JSON representation
a simple CLI to adjust the aspect ratio of PNG images by adding transparent padding.
- Host: GitHub
- URL: https://github.com/chrisseto/setaspect
- Owner: chrisseto
- License: mit
- Created: 2022-01-07T03:24:18.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2022-01-17T17:44:17.000Z (about 3 years ago)
- Last Synced: 2024-11-08T23:16:41.832Z (3 months ago)
- Language: JavaScript
- Size: 1.03 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Set Aspect
`setaspect` is a simple CLI to adjust the aspect ratio of PNG images by adding transparent padding.
Really, I just want to post screenshots on twitter and have them formattted appropriately.
For that reason, the default aspect ratio is 16:9.
## Installation
```
go install github.com/chrisseto/setaspect@latest
```## Usage
Write to an output file:
```
setaspect -o ./what-i-will-post-on-twitter.png /.my-screenshot.png
```Or redirect to an output file
```
setaspect ./my-screenshot.png > ./what-i-will-post-on-twitter.png
```Or just use the [online version](https://setaspect.seto.xyz/).