2 Feb pnmscale was obsoleted by pamscale, introduced with Netpbm (January ). pamscale is backward compatible with pnmscale, plus adds many additional functions, including the ability to process PAM images. pnmscale remained in the Netpbm package until Netpbm (March ) because. 29 Dec For the first 13 years of Netpbm's life, until Netpbm (January ), pamscale's predecessor pnmscale always treated the PPM samples as intensity- proportional even though they were not, and drew few complaints. So using - linear as a lie is a reasonable thing to do if speed is important to you. pnmscale was obsoleted by pamscale(1),introducedwithNetpbm (January ). pamscale is backward compatible with pnmscale, plus adds many additional functions, including the ability to process PAM images. pnmscale remained in the Netpbm package until Netpbm (March ) because of hopes that it.
pnmscale(1) pnmscale(1) NAME pnmscale - scale a portable anymap SYNOPSIS pnmscale s [pnmfile] pnmscale -xsize|-width|-ysize| -height s [pnmfile] pnmscale -xscale|-yscale s [pnmfile] pnmscale -xscale|-xsize|-width s -yscale|- ysize|-height s [pnmfile] pnmscale -xysize x y [pnmfile] pnmscale -pixels n [ pnmfile]. 25 Jan SYNOPSIS. pnmscale [ scale_factor | -xysize cols rows | -reduce reduction_factor | [-xsize=cols | -width=cols | -xscale=factor] [-ysize=rows | -height=rows | -yscale= factor] | -pixels n ] [-verbose] [-nomix] [pnmfile]. If you want PBM output, use pgmtopbm to convert pnmscale's output to PBM. Also consider pbmreduce. You can both enlarge (scale factor > 1) and reduce (scale factor pnmscale scales each dimension independently without consideration of the.
21 Sep Now, the prob is I an NEW to PHP and have no idea how to write the following " un-supported" lines with GD "alteratives". Could someone PLEASE PLEASE help ? $x = ; $y = ; $tmp_tmb = "/tmp/$"; $command = "djpeg - pnm $filename | pnmscale -xsize $x -ysize $y | cjpeg > $tmp_tmb";. I was unaware that I had to also install netpbm-progs and netpbm-devel besides the basic netpbm. That solved the problem. Or, better yet: convertimage $filename | pnmscale | pnmmargin | pnmtojpeg \ > $ outfile As we've already seen, this is equivalent to: eval convertimage $filename | pnmscale | pnmmargin |\ pnmtojpeg > $outfile And knowing what we do about how eval operates, we can transform this into: eval "convertimage" $filename.