pnmcrop(1)


NAME

   pnmcrop - crop a portable anymap

SYNOPSIS

   pnmcrop   [-white|-black|-sides]   [-left]  [-right]  [-top]  [-bottom]
   [pnmfile]

   All options may be abbreviated  to  their  shortest  unique  prefix  or
   specified with double hyphens.

DESCRIPTION

   Reads  a PBM, PGM, or PPM image as input.  Removes borders that are the
   background color, and produces the same type of image as output.

   If you don't specify otherwise, pnmcrop assumes the background color is
   whatever  color  the top left and right corners of the image are and if
   they are different colors, something  midway  between  them.   You  can
   specify  that  the  background  is  white  or black with the -white and
   -black options or make pnmcrop base  its  guess  on  all  four  corners
   instead of just two with -sides.

   By  default, pnmcrop chops off any stripe of background color it finds,
   on all four sides.  You  can  tell  pnmcrop  to  remove  only  specific
   borders with the -left, -right, -top, and -bottom options.

   If  you  want  to  chop a specific amount off the side of an image, use
   pnmcut.

   If you want to add different borders after removing the existing  ones,
   use pnmcat or pnmcomp.

OPTIONS

   -white Take  white to be the background color.  pnmcrop removes borders
          which are white.

   -black Take black to be the background color.  pnmcrop removes  borders
          which are black.

   -sides Determine  the  background  color  from  the  colors of the four
          corners of the input image.  pnmcrop removes borders  which  are
          of the background color.

          If  at  least  three  of  the  four  corners are the same color,
          pnmcrop takes that as the background  color.   If  not,  pnmcrop
          looks  for two corners of the same color in the following order,
          taking the first found  as  the  background  color:  top,  left,
          right,  bottom.   If  all  four  corners  are  different colors,
          pnmcrop assumes an average of the four colors as the  background
          color.

          The  -sides  option  slows  pnmcrop down, as it reads the entire
          image to determine the background color in addition to the up to
          three times that it would read it without -sides.

   -left  Remove any left border.

   -right Remove any right border.

   -top   Remove any top border.

   -bottom
          Remove any bottom border.

   -verbose
          Print  on  Standard  Error  information  about  the  processing,
          including exactly how much is being cropped off of which sides.

SEE ALSO

   pnmcut(1), pnmfile(1), pnm(5)

AUTHOR

   Copyright (C) 1989 by Jef Poskanzer.

                             18 March 2001                      pnmcrop(1)





Opportunity


Personal Opportunity - Free software gives you access to billions of dollars of software at no cost. Use this software for your business, personal use or to develop a profitable skill. Access to source code provides access to a level of capabilities/information that companies protect though copyrights. Open source is a core component of the Internet and it is available to you. Leverage the billions of dollars in resources and capabilities to build a career, establish a business or change the world. The potential is endless for those who understand the opportunity.

Business Opportunity - Goldman Sachs, IBM and countless large corporations are leveraging open source to reduce costs, develop products and increase their bottom lines. Learn what these companies know about open source and how open source can give you the advantage.





Free Software


Free Software provides computer programs and capabilities at no cost but more importantly, it provides the freedom to run, edit, contribute to, and share the software. The importance of free software is a matter of access, not price. Software at no cost is a benefit but ownership rights to the software and source code is far more significant.


Free Office Software - The Libre Office suite provides top desktop productivity tools for free. This includes, a word processor, spreadsheet, presentation engine, drawing and flowcharting, database and math applications. Libre Office is available for Linux or Windows.





Free Books


The Free Books Library is a collection of thousands of the most popular public domain books in an online readable format. The collection includes great classical literature and more recent works where the U.S. copyright has expired. These books are yours to read and use without restrictions.


Source Code - Want to change a program or know how it works? Open Source provides the source code for its programs so that anyone can use, modify or learn how to write those programs themselves. Visit the GNU source code repositories to download the source.





Education


Study at Harvard, Stanford or MIT - Open edX provides free online courses from Harvard, MIT, Columbia, UC Berkeley and other top Universities. Hundreds of courses for almost all major subjects and course levels. Open edx also offers some paid courses and selected certifications.


Linux Manual Pages - A man or manual page is a form of software documentation found on Linux/Unix operating systems. Topics covered include computer programs (including library and system calls), formal standards and conventions, and even abstract concepts.