Web Demos

BARCODE READER SDK DEMO

Explore the flexibe barcode reading settings to optimize for your specific usage scenario.

WEB TWAIN SDK DEMO

Try the most popular web scanner features: scan images, import local images and PDF files, edit, save to local, upload to database, and etc.

BARCODE READER JAVASCRIPT DEMO

Transform any camera-equipped devices into real-time, browser-based barcode and QR code scanners.

MRZ SCANNER WEB DEMO

Detects the machine-readable zone of a passport, scans the text, and parses into human-readable data.

APP STORE DEMOS

BARCODE READER SDK FOR IOS

BARCODE READER SDK FOR ANDROID

VIEW MORE DEMOS >
Dev Center
Table of contents

File Types

Dynamic Web TWAIN supports the following file types:

BMP

BMP is an uncompressed image format. Such a file is huge because of the lack of compression. A lower limit on storage size for a n-bit-per-pixel bitmap, in bytes, can be calculated as:

size = width * height * n/8; // where height and width are given in pixels

For example, a US Letter sized paper scanned in 300 DPI and in colour has the size of (8.5 * 300) * (11 * 300) * 24 / 8 = 25, 245, 000 bytes which is close to 24 MB.

JPEG

The JPEG format supports eight-bit grayscale images and 24-bit color images (eight bits each for red, green, and blue). Black & white image data which is 1-bit can not be saved in this format.

This format applies lossy compression to images, which can result in a significant reduction of the file size. Applications can determine the degree of compression to apply, and the amount of compression affects the visual quality of the result. DWT uses the API JPEGQuality to control this.

NOTE

The API JPEGQuality affects the degree of compression of the file as long as it uses the JPEG compression type. In other words, a TIFF file or a PDF file using JPEG compression will also be affected.

TIFF

Compared with BMP and JPEG , the TIFF format is more like a container that holds image(s) and data in a single file. A TIFF file uses tags to describe the data it holds so that applications know how to read it. DWT allows custom tags with the APIs ClearTiffCustomTag() and SetTiffCustomTag() .

TIFF also allows multiple images in the same file. DWT controls this with the API IfTiffMultiPage .

PNG

The PNG format supports lossless data compression. The same image may save bigger as a .png than a .jpg but it preserves all information.

PDF

The PDF format is an advanced and popular file format that allows a variety of content. Because of the complexity of the format, it is impractical for a lightweight SDK such as DWT to have full support for it. Instead, DWT supports the format in two ways

  • DWT can read and write a pure-image-based PDF file;
  • DWT can use its PDF Rasterizer module to rasterize almost any PDF file and convert its visible content into images so as to “read” it.

Is this page helpful?

YesYes NoNo

In this article:

latest version

    • Latest Version
    • Version 17.2.1
    • Version 17.1.1
    • Version 17.0
    • Version 16.2
    • Version 16.1.1
    Change +
    © 2003–2022 Dynamsoft. All rights reserved.
    Privacy Statement / Site Map / Home / Purchase / Support