← 返回命令列表

Linux command

pamstretch-gen 命令

文本

涉及管道、覆盖或删除,执行前请先确认路径和参数。

常用示例

Scale an image

pamstretch-gen [2.5] [input.pam] > [output.pam]

Read from standard input

cat [input.pam] | pamstretch-gen [1.75] > [output.pam]

说明

pamstretch-gen scales a Netpbm image by an arbitrary (possibly non-integer) factor. Internally it upscales to the next integer multiple with pamstretch (which only supports integer factors) and then uses pamscale to scale back down to the requested size, producing higher-quality results than pamscale alone for modest upscaling. There are no command-line options specific to pamstretch-gen; it recognizes the common libnetpbm options (for example `-quiet` and `-plain` on recent versions).

FAQ

What is the pamstretch-gen command used for?

pamstretch-gen scales a Netpbm image by an arbitrary (possibly non-integer) factor. Internally it upscales to the next integer multiple with pamstretch (which only supports integer factors) and then uses pamscale to scale back down to the requested size, producing higher-quality results than pamscale alone for modest upscaling. There are no command-line options specific to pamstretch-gen; it recognizes the common libnetpbm options (for example `-quiet` and `-plain` on recent versions).

How do I run a basic pamstretch-gen example?

Run `pamstretch-gen [2.5] [input.pam] > [output.pam]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

Where can I find more pamstretch-gen examples?

This page includes 2 examples for pamstretch-gen, plus related commands for nearby Linux tasks.