Building a bitmap (.bmp) transformer CLI. It will read a bitmap in from disk, run one or more color or raster transforms and then write it out to a new file.
Example Strategy
- Gather user input (infile, outfile, and transform)
- Read the input bitmap file using the fs module
- Parse the bitmap’s buffer into object representing a bitmap (using a constructor)
- Using metadata from the parsed bitmap object run a transform on the buffer directly (mutate the color or raster data)
- Write the mutated buffer to the output file path
Liz Mahoney John Winters
1.0.0
- In the terminal, create a folder in your local drive by running
mkdir bitmap-transformer
, then cd into that directory. - Clone this repo
git clone https://github.com/emd5/bitmap-transformer.git
. - Open with IntelliJ:
idea .
, make sure JDK is installed. - To run application:
./gradlew run --args 'input output transform'