1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-21 21:22:06 +02:00
tldr/pages/common/pnmscalefixed.md
Antti Savolainen e1d44b5166 batch3
2025-03-28 18:12:09 +02:00

17 lines
757 B
Markdown

# pnmscalefixed
> Scale a PNM file quickly with possibly reduced quality.
> See also: `pamscale`.
> More information: <https://netpbm.sourceforge.net/doc/pnmscalefixed.html>.
- Scale an image such that the result has the specified dimensions:
`pnmscalefixed {{[-w|-width]}} {{width}} {{[-h|-height]}} {{height}} {{path/to/input.pnm}} > {{path/to/output.pnm}}`
- Scale an image such that the result has the specified width, keeping the aspect ratio:
`pnmscalefixed {{[-w|-width]}} {{width}} {{path/to/input.pnm}} > {{path/to/output.pnm}}`
- Scale an image such that its width and height is changed by the specified factors:
`pnmscalefixed {{[-xsc|-xscale]}} {{x_factor}} {{[-ysc|-yscale]}} {{y_factor}} {{path/to/input.pnm}} > {{path/to/output.pnm}}`