LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

pamtotga

converts PAM/PNM images to TGA format

TLDR

Convert PAM to TGA format
$ pamtotga [input.pam] > [output.tga]
copy
Convert with colormapped output
$ pamtotga -cmap [input.pam] > [output.tga]
copy
Convert as monochrome
$ pamtotga -mono [input.pam] > [output.tga]
copy
Convert without RLE compression
$ pamtotga -norle [input.pam] > [output.tga]
copy
Set image ID in TGA header
$ pamtotga -name=[label] [input.pam] > [output.tga]
copy

SYNOPSIS

pamtotga [options] [file]

DESCRIPTION

pamtotga converts PAM/PNM images to TGA (Targa) format. Supports 24-bit and 32-bit with alpha. By default, the most constrained compatible type is chosen (monochrome over colormapped over unmapped). RLE compression is enabled by default. Part of the Netpbm toolkit.

PARAMETERS

-mono

Output monochrome 8-bit TGA. Input must be PBM, PGM, or PAM with BLACKANDWHITE or GRAYSCALE tuple type.
-cmap
Output colormapped TGA using a palette. Input must have no more than 256 distinct colors and no transparency.
-cmap16
Like -cmap but uses 16-bit (5 bits per channel) color map entries instead of 24-bit.
-rgb
Output 24-bit unmapped color TGA.
-norle
Disable RLE (Run-Length Encoding) compression.
-name=name
Set the image ID in the TGA header.
-verbose
Print information about the conversion process.

INSTALL

sudo apt install netpbm
copy
sudo dnf install netpbm
copy
sudo pacman -S netpbm
copy
sudo apk add netpbm
copy
sudo zypper install netpbm
copy
brew install netpbm
copy
nix profile install nixpkgs#netpbm
copy

SEE ALSO

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid