Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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/).