mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
26 lines
811 B
Plaintext
26 lines
811 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# ppmtoilbm
|
|
|
|
> Convert a PPM image to an ILBM file.
|
|
> More information: <https://netpbm.sourceforge.net/doc/ppmtoilbm.html>.
|
|
|
|
- Convert a PPM image to an ILBM file:
|
|
|
|
`ppmtoilbm {{path/to/file.ppm}} > {{path/to/file.ilbm}}`
|
|
|
|
- Write a maximum of `n` planes to the ILBM file and produce a HAM/24bit/direct color file if this number is exceeded:
|
|
|
|
`ppmtoilbm {{[-mp|-maxplanes]}} {{n}} -{{hamif|24if|dcif}} {{path/to/file.ppm}} > {{path/to/file.ilbm}}`
|
|
|
|
- Produce a ILBM file with exactly `n` planes:
|
|
|
|
`ppmtoilbm {{[-fp|-fixplanes]}} {{n}} {{path/to/file.ppm}} > {{path/to/file.ilbm}}`
|
|
|
|
- Select the compression method to be used:
|
|
|
|
`ppmtoilbm -{{compress|nocompress|savemem}} {{path/to/file.ppm}} > {{path/to/file.ilbm}}`
|