Multiple-image Network Graphics (MNG)
MNG (Multiple-image Network Graphics) is a graphics format that supports all features of PNG and JPEG compression algorithms (including semi-transparency and gamma correction) to create animated images. Settings of this format are adjusted with the help of the following parameters:
- bpp - color depth (default - 24 bpp)
- quant - quantization (default - 8)
- dither - dithering (default - yes)
- compression - compression level (default - 5)
- multipage - multipage option (default - "AS IS")
bpp
Bpp parameter parameter specifies the number of bits used to transfer the color of one pixel. Its allowed values are:
- 1 - 1 bpp (Mono)
- 4 - 4 bpp (Indexed)
- 8 - 8 bpp (Indexed)
- 24 - 24 bpp (True color, RGB)
- 32 - 32 bpp (True color, RGBA)
- 48 - 48 bpp (True color, RGB)
- 64 - 64 bpp (True color, RGBA)
The default value is: 24.
Example:
quant
Quant parameter reduces the number of distinct colors used in an image while preserving visual image quality. Allowed values of Quant parameter are whole numbers from 0 to 8.
The default value is: 8.
Example:
dither
Dither is a form of noise, or 'erroneous' signal or data which is added to sample data to minimize quantization error. Allowed values of Dither parameter are yes and no.
The default value is: yes.
Example:
compression
Compression parameter specifies compression level of resulting images. Its allowed values are whole numbers from 0 to 9 (default - 5).
The default value is: 5.
Example:
multipage
Multipage parameter specifies whether resulting images are saved as separate files or one multipage file. Its allowed values are:
- as_is - all converted images are saved to resulting files in accordance with the structure of source files.
- separate_pages - all source files, single-page as well as multipage, will be saved as separate single-page files.
- multipage - all source images will be saved to one multipage file.
- append - all source images will be added to the specified multipage file.
The default value is: as_is.
Example:
general example
ICPCL.exe -convertto mng bpp:48 compression_level:3 multipage:separate_pages quant:4 dither:no -source "C:\Original files" -dest "C:\Converted files"
tips
-
Use Quant parameter only if Bpp parameter value is 1, 4 or 8 bpp.
Example:
ICPCL.exe -convertto mng bpp:8 quant:3 -source "C:\Original files" -dest "C:\Converted files" -
Use Dither parameter only if Bpp parameter value is 1, 4 or 8 bpp.
Example:
ICPCL.exe -convertto mng bpp:8 dither:no -source "C:\Original files" -dest "C:\Converted files" -
When creating multipage files, the order of their pages is specified by the order of converted images (that is, the way they are sorted with the help of -sort key).