bw-png — convert a BRL BW(5) format image to a PNG (Portable Network Graphics) format image
bw-png converts a BRL BW(5) format file to a PNG format file on the standard output. The PNG file created will be a Gray scale file with a bit-depth of 8 and a file gamma of 1.0.
autosize the input file to determine file image height and width
tells bw-png that the input is file_height scanlines tall
tells bw-png that the input is file_width pixels wide
sets both the width and the height for the input to be squaresize
This software is Copyright (c) 1998-2016 by the United States Government as represented by U.S. Army Research Laboratory.