How to set bit depth when converting EMF to PNG?

VeryPDF HTML Converter Command Line was originally designed to convert HTML files and web pages to PS, PDF and other formats. You can use it to convert a whole webpage to a PDF page. VeryPDF HTML Converter Command Line can also be used to convert other files line EMF to PNG and other image files like JP2, BMP, and JPEG. With the help of VeryPDF HTML Converter Command Line, you can correctly and effectively convert EMF to PNG and set bit depth via a command line. As for bit depth, it is the number of bits that can represent the colors in an digital image. The deeper bit depth allows the image to store more colors. VeryPDF HTML Converter Command Line is available at the following website: .

In order to set bit depth, when convert EMF to PNG, three steps are required. You need to run the command prompt window first; and then, enter a command line, which should conclude the command -bitcount <int> for color setting; and press “Enter”. The following will introduce the method in detail.

1. Run the command prompt window

Whenever you want to convert documents via a command line, you can use the following method to run the command prompt window: click “Start”; > click “Run” on the home menu; > enter “cmd” in the “Run” dialog box;>click on “OK” in the “Run” dialog box. The black and white command window will appear on the screen promptly. The following image illustrates the four steps to run the command prompt window.


2. Enter a command line

To set bit depth and convert EMF to PNG, the command line should consist of four parts: three files and one command.

htmltools -bitcount <int> <EMF file> <PNG file>

According to the command line pattern above, the four parts are:

  • htmltools ---- the executable file, which in fact is htmltools.exe.
  • -bitcount <int> ---- the command that can be used to set bit depth. 1, 8 or 24 can be the parameter value of this command. int stands for integer, and the angle brackets, are used to mark essential contents. For instance, if the command is -bitcount 1, the image will be black and white; if the command is -bitcount 8, the result image file is capable of storing 28possible colors.
  • <EMF file> ----the input file in EMF format
  • <PNG file> ---- the output file in PNG format

The command line pattern above only shows what factors should be included in the command. However, when you enter a command line in the command prompt window, you should enter the whole directories of the executable file, the input file and output file instead of their names. For example,

D:\htmltools\htmltools.exe -bitcount 24 D:\in\rose.emf D:\out\rose.png

In the example above, the whole directories of the executable file, the input file and the output file, but not the bare names, appear in this command line. The directories in the example should be replaced with the real directory of the executable file, the input file and the output file in your computer.

  • D:\htmltools\htmltools.exe represents the directory of the executable file htmltools.exe, which is always placed in the folder called htmltools . In this example, this folder has been placed on disc D.
  • -bitcount 24 is the command which specifies 24-bit as the bit depth for the output file converted from EMF to PNG. You can change 24 to either 1 or 8, depending on your requirement.
  • D:\in\rose.emf is the directory of the input EMF file. It leads the computer to find the file named rose in the folder in on disk D.
  • D:\out\rose.png represents the directory of the output file. It specifies PNG as the output format, names the output file rose, and orders the computer to export the output file to the folder named out on disk D.

3. Press “Enter”

Press “Enter” on the keyboard, and the application can convert EMF to PNG in a wink. The images below are the original EMF file, and the files converted from EMF to PNG.

The original EMF file


8-bit PNG file


24-bit PNG file



VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *

Verify Code   If you cannot see the CheckCode image,please refresh the page again!