5. LuraWave Plug-In
Control Settings Reference
Overview
LuraTechâs flagship product, LuraWave, provides a revolutionary, platform-independent, wavelet-
based compression format (.lwf). LuraWaveâs analyzing wavelet filter allows a lossless
compression at low compression ratios and lossy compression at higher ratios. LuraWaveâs lossless
image compression significantly outperforms that of comparable techniques, like LZW and TIFF.
Compared to conventional compression methods like JPEG, LuraWave maintains maximum, user-
defined image quality using a lossless-to-lossy compression scheme. LuraWave has 5:1 lossless
(guaranteed pixel identity) compression and 1:100 lossy compression without any apparent
artifacts. But users can select compression ratios up to 1:200.
Images in standard digital formats (for example, TIFF, BMP, PPM, JPEG) can be easily converted
to the LuraWave format through:
âą LuraWave plug-ins, available online for applications like Adobe Photoshop, Jasc
Paintshop Pro, Netscape and Microsoft browsers, Cumulus, and Macromedia Director.
âą Standalone solutions, like LuraWave SmartCompress, which can compress images to less
than 0.5 percent of their original size, facilitating the sharing of high-quality images
quickly and easily through e-mail or personal Web sites. The desired image size is
specified by the user, making SmartCompress extremely valuable to users with limited
bandwidths or storage.
âą Software development kits (C-SDK, OCX-SDK).
LuraWave allows you to use a wide variety of new, wavelet-based, compression techniques.
Advantages include:
âą Fast compression and decompression. LuraWave compression is an extremely fast
wavelet-based image compression technique. Compression and decompression consume
about the same computation time.
âą Excellent image quality at high compression rates.
âą A choice of lossless or lossy image compression.
âą A user-specified compression rate. Size-dependent compression control is embedded in
LuraWave, while other compression techniques dictate file size by the content of the
image and can vary from that of the userâs desired file size. Of course, LuraWave also
grants you the option to compress an image by setting the desired quality, rather than file
size.
âą Elimination of JPEG-like blocking artifacts. JPEG uses the inherently lossy Discrete
Cosine Transform compression algorithm, which compresses an image in partitioned
âtiles.â LuraWave uses a special Discrete Wavelet Transform image analyzing method that
results in improved image quality by performing Discrete Wavelet analysis over the whole
image without tile partitioning, so there are no residual âblockingâ artifacts.
âą Quicklook generation and scale image reconstruction based on embedded coding
techniques.
Overview ImageGear PDF âą 1
6. âą Scaled image reconstruction means the whole image can be reconstructed by only small
fractions of the compressed data source. That is, by 1 percent, 10 percent, 50 percent and
so on (the quality of the reconstructed image being proportionate to the amount of
available data).
The name of the ImageGear LuraWave plug-in is IGLura.dll. For information on using the newly
available ImageGear plug-ins in your application, see the âImageGear Plug-Insâ section in Chapter
One of the main ImageGear manual.
Supported Save Compressions
The LuraWave codec has two compression modes, progressive and baseline.
Progressive compression
In the progressive or embedded mode of the codec, the whole image is compressed at once. Then,
image data is ordered hierarchically, with information describing the most important image features
(sharp edges, large areas) is near the head of the file; less important information is near the end.
This makes it possible to preserve the most important file information, even if the file is arbitrarily
cut off. During transmission over a slow network connection, a rough version of the image can be
reconstructed before the transmission is even completed. As a result, this mode is especially
suitable for pictures in networks (like the Internet). However, only relatively small pictures should
be compressed in this mode (up to 1000 by 1000 pixels, depending on the computerâs memory
configuration) because the full image is held in memory during encoding.
Baseline Compression
Very large images should be compressed in the baseline mode. In this mode, stripes consisting of
several pixel rows are compressed sequentially. Only one stripe is held in the memory at a time, so
less memory is used. The hierarchical structure of the compressed image file is partially lost. A
section in the compressed file contains the hierarchically ordered information of only one stripe.
Save Compressions
To save an image with LuraWave compression, assign a defined Save constant to the lFormatType
parameter of IG_save_file (DLL), or to the SaveFormat property (ActiveX). These constants are
defined in your gear.h (DLL) and gear.bas (ActiveX) files.
To Save As: Use:
8g, 16g, 24 bpp images using the IG_SAVE_LURAWAVE
LuraWave compression method
2 âą ImageGear PDF Supported Save Compressions
7. Image Control Options
Control Option Value Description
IG_CONTROL_LURAWAVE_ Any non-negative value Compression coefficient. If zero,
QUALITY lossless compression method will
be used
IG_CONTROL_LURAWAVE_ IG_LW_SMODE_ Compression mode
SCAN_MODE BASELINE
IG_LW_SMODE_
EMBEDDED
Control Settings Reference
IG_CONTROL_LURAWAVE_QUALITY
Data Type: DOUBLE
Purpose:
This control option sets compression coefficient. If zero, lossless compression method will be used.
For example, if you set 2 for this control option then size of the output file will be less by half then
size of the original uncompressed image
Valid Values: Any non-negative value.
Default Value: 10.0
DLL Example:
DOUBLE dWltQuality=40.0;
IG_image_control_set (IG_CONTROL_LURAWAVE_QUALITY,
(LPVOID)&dWltQuality);
ActiveX Example:
Gear1.ImageControlSet IG_CONTROL_LURAWAVE_QUALITY, 40.0
IG_CONTROL_LURAWAVE_SCAN_MODE
Data Type: INT
Image Control Options ImageGear PDF âą 3
8. Purpose:
This control option sets compression mode.
Valid Values:
IG_LW_SMODE_BASELINE
IG_LW_SMODE_EMBEDDED
Default Value: IG_LW_SMODE_EMBEDDED
DLL Example:
IG_image_control_set (IG_CONTROL_LURAWAVE_SCAN_MODE,
(LPVOID) IG_LW_SMODE_BASELINE);
ActiveX Example:
Gear1.ImageControlSet IG_CONTROL_LURAWAVE_SCAN_MODE,
IG_LW_SMODE_BASELINE
4 âą ImageGear PDF Control Settings Reference
9. Index
B
Baseline compression 2
C
Control Options 3
Control Settings 3
I
IG_CONTROL_LURAWAVE_QUALITY 3
IG_CONTROL_LURAWAVE_SCAN_MODE 3
Image Control Options 3
O
Overview 1
P
Progressive compression 2
Q
quality (setting) 3
S
Save Compressions 2
Save compressions 2
scan mode 3
Settings Reference 3
Index ImageGear PDF âą 5