Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/PatriikPlays/img2poster
Image to poster converter tool for SwitchCraft3 posters.
https://github.com/PatriikPlays/img2poster
Last synced: 3 months ago
JSON representation
Image to poster converter tool for SwitchCraft3 posters.
- Host: GitHub
- URL: https://github.com/PatriikPlays/img2poster
- Owner: PatriikPlays
- License: gpl-2.0
- Created: 2023-04-22T22:05:54.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-14T14:36:34.000Z (7 months ago)
- Last Synced: 2024-01-25T19:35:46.802Z (5 months ago)
- Language: Rust
- Size: 85.9 KB
- Stars: 6
- Watchers: 1
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Lists
- awesome-switchcraft - img2poster - Fast converter between images and 2dj/a (Programs / External Software)
README
# img2poster
![GitHub release (latest by date including pre-releases)](https://img.shields.io/github/v/release/PatriikPlays/img2poster?include_prereleases&label=Latest%20release&style=flat-square)
Image to poster CLI converter tool for [SwitchCraft3](https://sc3.io) posters.
img2poster is written in rust for speed and efficiency! It is faster than most other implementations of 2dj(a).
## Installation
### Windows
1. Download the latest windows executable from GitHub releases. `img2poster-win.exe`
2. Open your terminal (cmd)
3. Use it! Check out usage guide below.### Linux
1. Download the latest Linux executable from GitHub releases. `img2poster-lnx`
2. Open your terminal of choice
3. Use it! Check the usage guide below.## Usage (for 0.1.0)
img2poster is a CLI to convert between images and posters. See the CLI argument and flags below:
---
### Input **(Required)**The input argument is the file path to the source image/poster you want to convert into a poster/image.
Aliases:
* `-i`
* `--input`Examples:
* `-i ./apioform.png`
* `-i /home/me/images/capy64.jpg`
* `--input ../mfw.jpg`
* `-i ./poster.2dj`
* `-i ./poster.2dja`---
### Output **(Required)**The output argument is the file path where you want your poster/image files to end up.
Aliases:
* `-o`
* `--output`Examples:
* `-o ./myPoster.2dj`
* `--output ./anotherPoster.2dja`
* `-o ./myImage.png`
* `--output ./myImage.jpg`---
### PreviewThe preview argument is the file path where you want your preview image to end up.
Aliases:
* `-p`
* `--preview`Examples:
* `-p ./myPreview.png`
* `--preview ./myPreview.jpg`
* `-p ./myPreview.bmp`
* `--preview ./myPreview.jpeg`---
### AutoscaleAliases:
* `-a`
* `-autoscale`Examples:
* `-a `
* `--autoscale 2 # will resize to 2x the size of the input image`
* `-a 1 # will resize to the closest possible size of the input image`
* `--autoscale 1 # will resize to the closest possible size of the input image`---
### Scale XThe scale-x argument is the amount of pixels on the X axis to scale the poster to. A single poster is always 128x128, which means that **this field has to be a multiple of 128.**
> **Note**
> Only use with image input files, not 2dj/2dja> **Note**
> Cannot be used with autoscaleAliases:
* `-x`
* `--scale-x`Examples:
* `-x 256`
* `-x 384`
* `--scale-x 128`---
### Scale YThe scale-y argument is the amount of pixels on the Y axis to scale the poster to. A single poster is always 128x128, which means that this field has to be a multiple of 128.
> **Note**
> Only use with image input files, not 2dj/2dja> **Note**
> Cannot be used with autoscaleAliases:
* `-y`
* `--scale-y`Examples:
* `-y 256`
* `-y 384`
* `--scale-y 128`---
### Poster LabelThe poster label argument is what to label the poster as.
> **Note**
> Only use with image input files, not 2dj/2dja> **Note**
> The poster label cannot be longer than 25 charactersAliases:
* `-l`
* `--label`Examples:
* `-l myPoster`
* `--label ApioformPoster2`---
### Force poster labelThe force poster label argument is able to overwrite the actual label, instead of the default `: (x,y)/(totalX*totalY)`.
> **Note**
> Only use with image input files, not 2dj/2djaAliases:
* `-L`
* `--forcelabel`Examples:
* `-L FunnyPoster`
* `--forcelabel veryPostery`---
### Force poster tooltipThe force poster tooltip argument is similar to the "Force poster label" argument, except this one overwrites the tooltip instead of the default JSON information
> **Note**
> Only use with image input files, not 2dj/2djaAliases:
* `-T`
* `--forcetooltip`Examples:
* `-T MyCoolTooltip`
* `--forcetooltip VeryTooltip`---
### Per poster quantizationThe per poster *quantization* **flag** makes the program select the colorpalette on a per-poster basis.
> **Note**
> Only use with image input files, not 2dj/2djaAliases:
* `-Q`
* `--per-poster-quantization`Examples:
* `-Q`
* `--per-poster-quantization`