EnglishFrenchSpanish

OnWorks favicon

ppmtoicr - Online in the Cloud

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

This is the command ppmtoicr 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


ppmtoicr - convert a portable pixmap into NCSA ICR format

SYNOPSIS


ppmtoicr [-windowname name] [-expand expand] [-display display] [-rle] [ppmfile]

DESCRIPTION


Reads a portable pixmap file as input. Produces an NCSA Telnet Interactive Color Raster
graphic file as output. If ppmfile is not supplied, ppmtoicr will read from standard
input.

Interactive Color Raster (ICR) is a protocol for displaying raster graphics on workstation
screens. The protocol is implemented in NCSA Telnet for the Macintosh version 2.3. The
ICR protocol shares characteristics of the Tektronix graphics terminal emulation protocol.
For example, escape sequences are used to control the display.

ppmtoicr will output the appropriate sequences to create a window of the dimensions of the
input pixmap, create a colormap of up to 256 colors on the display, then load the picture
data into the window.

Note that there is no icrtoppm tool - this transformation is one way.

OPTIONS


-windownamename
Output will be displayed in name (Default is to use ppmfile or "untitled" if
standard input is read.)

-expandexpand Output will be expanded on display by factor expand (For example, a value of
2 will cause four pixels to be displayed for every input pixel.)

-displaydisplay
Output will be displayed on screen numbered display

-rle Use run-length encoded format for display. (This will nearly always result
in a quicker display, but may skew the colormap.)

EXAMPLES


To display a ppm file using the protocol:
ppmtoicr ppmfile
This will create a window named ppmfile on the display with the correct dimensions for
ppmfile, create and download a colormap of up to 256 colors, and download the picture into
the window. The same effect may be achieved by the following sequence:
ppmtoicr ppmfile > filename
cat filename
To display a GIF file using the protocol in a window titled after the input file, zoom the
displayed image by a factor of 2, and run-length encode the data:
giftopnm giffile | ppmtoicr -w giffile -r -e 2

Use ppmtoicr online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    Phaser
    Phaser
    Phaser is a fast, free, and fun open
    source HTML5 game framework that offers
    WebGL and Canvas rendering across
    desktop and mobile web browsers. Games
    can be co...
    Download Phaser
  • 2
    VASSAL Engine
    VASSAL Engine
    VASSAL is a game engine for creating
    electronic versions of traditional board
    and card games. It provides support for
    game piece rendering and interaction,
    and...
    Download VASSAL Engine
  • 3
    OpenPDF - Fork of iText
    OpenPDF - Fork of iText
    OpenPDF is a Java library for creating
    and editing PDF files with a LGPL and
    MPL open source license. OpenPDF is the
    LGPL/MPL open source successor of iText,
    a...
    Download OpenPDF - Fork of iText
  • 4
    SAGA GIS
    SAGA GIS
    SAGA - System for Automated
    Geoscientific Analyses - is a Geographic
    Information System (GIS) software with
    immense capabilities for geodata
    processing and ana...
    Download SAGA GIS
  • 5
    Toolbox for Java/JTOpen
    Toolbox for Java/JTOpen
    The IBM Toolbox for Java / JTOpen is a
    library of Java classes supporting the
    client/server and internet programming
    models to a system running OS/400,
    i5/OS, o...
    Download Toolbox for Java/JTOpen
  • 6
    D3.js
    D3.js
    D3.js (or D3 for Data-Driven Documents)
    is a JavaScript library that allows you
    to produce dynamic, interactive data
    visualizations in web browsers. With D3
    you...
    Download D3.js
  • More »

Linux commands

Ad