How to set bit depth when converting EMF to JPG?

By use of VeryPDF HTML Converter Command Line, you can set bit depth and convert EMF to JPG via a command line. VeryPDF HTML Converter Command Line, which is available at https://www.verypdf.com/htmltools/index.html#dl, is a very powerful document converter: it can convert a whole web page to a PDF file and also convert other kind of file like EMF to JPG, and files in formats such as PS, and TIFF. Bit depth or color depth is the number of bits that can represent the colors in a digital image. The deeper the bit depth, the more the color s are allowed to be stored in the image.

The command -bitcount <int> can be used to set bit depth. This article will show you how to set bit depth and convert EMF to JPG via a command line which includes the command for bit depth.

1. Run the command prompt window

Here introduce the most commonly used way 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.

clip_image002

2. Enter a command line

If you want to set bit depth and convert EMF to JPG, the command line should be composed of four factors: three files and one command.

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

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

  • htmltools ---- the executable file, the full name of which is htmltools.exe.
  • -bitcount <int> ---- the command for setting bit depth. 1, 8 or 24 are the parameter values permitted. int stands for integer, and the angle brackets mark essential contents. If the command is -bitcount 1, the result image file will be black and white; if the command is -bitcount 24, the result image file will be in color, and is capable of storing 224 possible colors.
  • <EMF file> ----the input file in EMF format
  • <JPG file> ---- the output file in JPG format

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

D:\htmltools\htmltools.exe -bitcount 24 D:\in\rabbit.emf D:\out\rabbit.jpg

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----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 ---- the command indicates 24-bit is the bit depth for the output file converted from EMF to JPG. 24 can be changed to be 1 or 8, according to your needs.
  • D:\in\rabbit.emf ---- the directory of the input EMF file. It leads the computer to find the file named rabbit in the folder in on disk D.
  • D:\out\rabbit.jpg ---- the directory of the output file. As implied by the file extension, JPG is set to be the output format. Furthermore, rabbit should be the name of the output file, which is in the folder out on disk D.

3. Press “Enter”

Press the “Enter” key, and VeryPDF HTML Converter Command Line will convert EMF to JPG in a wink. The images below are the original EMF file, and the files converted from EMF to JPG.

The original EMF file

clip_image004

1-bit JPG file

clip_image006

8-bit JPG file

clip_image008

24-bit JPG file

clip_image010

clip_image011

VN:F [1.9.20_1166]
Rating: 10.0/10 (1 vote cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)
How to set bit depth when converting EMF to JPG?, 10.0 out of 10 based on 1 rating

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!