Home

Awesome

img2poster

GitHub release (latest by date including pre-releases)

Rust based CLI tool for converting and manipulating SwitchCraft3 posters.

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

Input

[!NOTE] This argument is required

The input argument is the file path to the source image/poster you want to convert into a poster/image.

Syntax:

Examples:


Output

[!NOTE] This argument is required

The output argument is the file path where you want your poster/image files to end up.

Syntax:

Examples:


Preview

It is possible to preview the poster in a normal image format. To do this specify the preview argument with a path.

Syntax:

Examples:


Autoscale

Autoscale automatically scales the image to its original resolution, rounded to nearest 128px.

Syntax:

Examples:


Scale X

The 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 autoscale

Syntax:

Examples:


Scale Y

The 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 autoscale

Syntax:

Examples:


Resizing Algorithm

The algorithm to use for scaling the input.

Acceptable values:

Syntax:

Examples:


Poster Label

The 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 characters

[!NOTE] The label will end up as <LABEL>: (x,y)/(totalX*totalY). To force your own label use -L (see below)

Syntax:

Examples:


Force poster label

The force poster label argument overwrites the actual label, instead of the default <LABEL>: (x,y)/(totalX*totalY).

[!NOTE] Only use with image input files, not 2dj/2dja

Syntax:

Examples:


Force poster tooltip

The force poster tooltip argument overwrites the default tooltip with the supplied string.

[!NOTE] Only use with image input files, not 2dj/2dja

Syntax:

Examples:


Per poster quantization

The per poster quantization flag makes the program select the colorpalette on a per-poster basis.

[!NOTE] Only use with image input files, not 2dj/2dja

Syntax:

Examples: