--white-normalize=<-1, 0-100>

The white-normalize option increases the number of white pixels in a grayscale output image by a specified percentage in order to sharpen the contrast between its black and white colors. Use this option in conjunction with the black-normalize option when encoding grayscale images that contain text and backgrounds of similar hues. For example, dark gray text on a light gray background can be converted to black text on a white background, thus improving its readability.

Assign values to the white-normalize option as described in the table below.

 

Supporting command:

documenttodjvu

 

Value

Description

-1

Attempts to auto-normalize the separation between an image's black and white colors. This value is the default.

0

Does not change the separation between an image's black and white colors.

1-100

Increases the number of white pixels in the image by this percentage. For example:

documenttodjvu --white-normalize=50 survey.jpeg survey.djvu

This use of --white-normalize increases the number of white pixels in the output image, survey.djvu, by 50 percent.