Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/eze-kiel/ratio

Generate different ratios of an image.
https://github.com/eze-kiel/ratio

go golang height images ratio size width

Last synced: 4 days ago
JSON representation

Generate different ratios of an image.

Awesome Lists containing this project

README

        

# ratio

Generate differents ratios of an image.

## Installation

```
$ git clone https://github.com/eze-kiel/ratio.git
$ cd ratio
$ go build
```

However, you can get the built binary from [the releases](https://github.com/eze-kiel/ratio/releases).

## Usage

```
Usage: ratio [-i] [width] [height]
```

Where `-i` is the increase flag.

Examples:

```
$ ratio 1920 1080
% width height
10 192 108
20 384 216
30 576 324
40 768 432
50 960 540
60 1152 648
70 1344 756
80 1536 864
90 1728 972
100 1920 1080
```

With the increase flag (`-i`):

```
$ ratio -i 1920 1080
% width height
110 2112 1188
120 2304 1296
130 2496 1404
140 2688 1512
150 2880 1620
160 3072 1728
170 3264 1836
180 3456 1944
190 3648 2052
200 3840 2160
```