pamflip, pnmcolormap, pnmquant, pnmremap, pnmrotate, ppmquant: add pages (#11800)
* pamflip, pnmcolormap, pnmquant, pnmremap, pnmrotate, ppmquant: add pages
---------
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2023-12-21 07:03:10 +01:00
|
|
|
# pnmremap
|
|
|
|
|
|
|
|
> Replace the colors in a PNM image.
|
|
|
|
> More information: <https://netpbm.sourceforge.net/doc/pnmremap.html>.
|
|
|
|
|
|
|
|
- Replace the colors in an image with those in the specified color palette:
|
|
|
|
|
2025-04-01 06:42:14 +03:00
|
|
|
`pnmremap {{[-ma|-mapfile]}} {{path/to/palette_file.ppm}} {{path/to/input.pnm}} > {{path/to/output.pnm}}`
|
pamflip, pnmcolormap, pnmquant, pnmremap, pnmrotate, ppmquant: add pages (#11800)
* pamflip, pnmcolormap, pnmquant, pnmremap, pnmrotate, ppmquant: add pages
---------
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2023-12-21 07:03:10 +01:00
|
|
|
|
|
|
|
- Use Floyd-Steinberg dithering for representing colors missing in the color palette:
|
|
|
|
|
2025-04-01 06:42:14 +03:00
|
|
|
`pnmremap {{[-ma|-mapfile]}} {{path/to/palette_file.ppm}} {{[-fs|-floyd]}} {{path/to/input.pnm}} > {{path/to/output.pnm}}`
|
pamflip, pnmcolormap, pnmquant, pnmremap, pnmrotate, ppmquant: add pages (#11800)
* pamflip, pnmcolormap, pnmquant, pnmremap, pnmrotate, ppmquant: add pages
---------
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2023-12-21 07:03:10 +01:00
|
|
|
|
|
|
|
- Use the first color in the palette for representing colors missing in the color palette:
|
|
|
|
|
2025-04-01 06:42:14 +03:00
|
|
|
`pnmremap {{[-ma|-mapfile]}} {{path/to/palette_file.ppm}} {{[-fi|-firstisdefault]}} {{path/to/input.pnm}} > {{path/to/output.pnm}}`
|
pamflip, pnmcolormap, pnmquant, pnmremap, pnmrotate, ppmquant: add pages (#11800)
* pamflip, pnmcolormap, pnmquant, pnmremap, pnmrotate, ppmquant: add pages
---------
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2023-12-21 07:03:10 +01:00
|
|
|
|
|
|
|
- Use the specified color for representing colors missing in the color palette:
|
|
|
|
|
2025-04-01 06:42:14 +03:00
|
|
|
`pnmremap {{[-ma|-mapfile]}} {{path/to/palette_file.ppm}} {{[-m|-missingcolor]}} {{color}} {{path/to/input.pnm}} > {{path/to/output.pnm}}`
|