EnglishFrenchSpanish

Ad


OnWorks favicon

cjb2 - Online in the Cloud

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

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


cjb2 - Simple DjVuBitonal encoder.

SYNOPSIS


cjb2 [options] inputfile outputdjvufile

DESCRIPTION


This is a simple encoder for bitonal files. Argument inputfile is the name of a PBM or
bitonal TIFF file containing a single document image. This program produces a DjVuBitonal
file named outputdjvufile.

The default compression process is lossless: decoding the DjVuBitonal file at full
resolution will produce an image exactly identical to the input file. Lossy compression
is enabled by options -losslevel, -lossy, or -clean.

OPTIONS


-dpi n Specify the resolution information encoded into the output file expressed in dots
per inch. The resolution information encoded in DjVu files determine how the
decoder scales the image on a particular display. Meaningful resolutions range
from 25 to 1200. The default resolution for TIFF files is the resolution is the
resolution specified by the input file. The default resolution for PBM files is
300 dpi.

-lossless
Ensure that the encoded image is pixel-per-pixel equal to the initial image. This
option is is equivalent to -losslevel 0 and is the default.

-clean Only remove flyspecks from the input image. This option enables a heuristic
algorithm that removes very small marks. Such marks are often causes by noise and
dust during the scanning process. The threshold mark size is chosen according to
the resolution specified with option This option is is equivalent to -losslevel 1.

-lossy Substitute patterns with small variations. In addition to the flyspeck removal
heuristic, this option enables an algorithm that encodes certain characters by
simply replicating the shape of a previously encoded character with a similar
shape. This option is is equivalent to -losslevel 100.

-losslevel x
Specify the aggressiveness of the lossy compression. Its argument ranges from 0 to
200. Higher values generate smaller files with more potential distortions. Loss
level 0 corresponds to lossless encoding. Loss level 1 performs image cleaning but
does not perform character substitution at all. Loss level 100 is intended to
provide a good compromise. Higher loss levels provide marginally better
compression at the risk of unacceptable character substitutions.

-verbose
Display informational messages while running.

REMARKS


Lossless encoding is competitive with that of the Lizardtech commercial encoders.

Lossy encoding has made much progress thanks to Ilya Mezhirov from the minidjvu project.
This also means that the lossy encoding performance can change from version to version.
When lossy compression yields inadequate results, simply revert to only using option
-clean or reduce the parameter of option -losslevel.

Two features are still missing:

* Half-tone detection. Collecting small marks belonging to half-tone patterns would
improve compression speed.

* Multi-page compression. Matching characters on several pages would improve the
compression ratios for multi-page documents.

CREDITS


This program was initially written by Léon Bottou <[email protected]> and was
improved by Bill Riemers <[email protected]> and many others. The pattern matching
algorithm for lossy compression was contributed by Ilya Mezhirov <[email protected]>.
TIFF input routines are inspired by the ones contributed by R. Keith Dennis
<[email protected]> and Paul Young.

Use cjb2 online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    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
  • 2
    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
  • 3
    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
  • 4
    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
  • 5
    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
  • 6
    Shadowsocks
    Shadowsocks
    A fast tunnel proxy that helps you
    bypass firewalls This is an application
    that can also be fetched from
    https://sourceforge.net/projects/shadowsocksgui/.
    It ha...
    Download Shadowsocks
  • More »

Linux commands

Ad