EnglishFrenchSpanish

OnWorks favicon

pnmcrop - Online in the Cloud

Run pnmcrop in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command pnmcrop that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

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.

Use pnmcrop online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    strace
    strace
    The strace project has been moved to
    https://strace.io. strace is a
    diagnostic, debugging and instructional
    userspace tracer for Linux. It is used
    to monitor a...
    Download strace
  • 2
    gMKVExtractGUI
    gMKVExtractGUI
    A GUI for mkvextract utility (part of
    MKVToolNix) which incorporates most (if
    not all) functionality of mkvextract and
    mkvinfo utilities. Written in C#NET 4.0,...
    Download gMKVExtractGUI
  • 3
    JasperReports Library
    JasperReports Library
    JasperReports Library is the
    world's most popular open source
    business intelligence and reporting
    engine. It is entirely written in Java
    and it is able to ...
    Download JasperReports Library
  • 4
    Frappe Books
    Frappe Books
    Frappe Books is a free and open source
    desktop book-keeping software that's
    simple and well-designed to be used by
    small businesses and freelancers. It'...
    Download Frappe Books
  • 5
    Numerical Python
    Numerical Python
    NEWS: NumPy 1.11.2 is the last release
    that will be made on sourceforge. Wheels
    for Windows, Mac, and Linux as well as
    archived source distributions can be fou...
    Download Numerical Python
  • 6
    CMU Sphinx
    CMU Sphinx
    CMUSphinx is a speaker-independent large
    vocabulary continuous speech recognizer
    released under BSD style license. It is
    also a collection of open source tools ...
    Download CMU Sphinx
  • More »

Linux commands

crm
crm
Use crm online using onworks.net
services. ...
Run crm
  • 4
    crmgr
    crmgr
    crmgr - administration utility for QDBM
    Curia ...
    Run crmgr
  • 5
    gappletviewer
    gappletviewer
    gappletviewer - Load and runs an applet
    ...
    Run gappletviewer
  • 6
    gaps
    gaps
    mummer - package for sequence alignment
    of multiple genomes ...
    Run gaps
  • s-processed="true">
    g15stats
    g15stats - A CPU/Memory/Swap usage
    meter for G15Daemon DESCRIPTION: The
    packages provides the following usage
    meter for LCD on some Logitech
    keyboards, usind g...
    Run g15stats
  • More »
  • Ad