Linux command
pnmscalefixed 命令
趣味
涉及管道、覆盖或删除,执行前请先确认路径和参数。
常用示例
Scale image using fixed-point math
pnmscalefixed [2.0] [input.pnm] > [output.pnm]
Scale to specific dimensions
pnmscalefixed -width [800] -height [600] [input.pnm] > [output.pnm]
说明
pnmscalefixed scales PNM images using fixed-point integer arithmetic instead of floating-point math. This makes it faster than pamscale on systems without hardware floating-point support, at the cost of slightly reduced accuracy. The tool accepts a scale factor or target dimensions via -width and -height. For most modern systems, pamscale is preferred for better quality. Part of the Netpbm toolkit.
参数
- -width _n_
- Target width.
- -height _n_
- Target height.
FAQ
What is the pnmscalefixed command used for?
pnmscalefixed scales PNM images using fixed-point integer arithmetic instead of floating-point math. This makes it faster than pamscale on systems without hardware floating-point support, at the cost of slightly reduced accuracy. The tool accepts a scale factor or target dimensions via -width and -height. For most modern systems, pamscale is preferred for better quality. Part of the Netpbm toolkit.
How do I run a basic pnmscalefixed example?
Run `pnmscalefixed [2.0] [input.pnm] > [output.pnm]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -width _n_ do in pnmscalefixed?
Target width.