BMP Negative made by Nicholas Lopez
The purpose of this app was to satisfy a coding challenge for a company that will go unnamed. The main objective is to create a photo negative from an image stored in the BMP File Format.
The Project comes with 2 Test Images and you can add your own if you'd like.
The Objectives are as follow:
- The Program must be non-destructive
- Assume non-compressed images
- Handles Errors Appropriately
- KISS Keep It Simple Stupid (Rhetorical Explanation)
- NO USE OF EXTERNAL IMAGE PROCESSING LIBRARIES
Clone the Repo.
- In console @ root dir type and enter
npm install
- In console @ root dir run
npm run start
- Presto! The Image-Negative should be in the /negatives folder
Note: If you want to convert your own image, add the image to the /images/dir and change the path accordingly in the code, save and run NPM START once more. TypeScript will rebuild the lib directory and run the code. Visit src/index if intrigued.
- You can also run the test entering in the console
npm run test
Inspiration, code snippets, Resources, etc.
- stack-overflow-question
- installing-typescript
- functional-style-async-class-constructors
- bmp-imageConverter
- Byte-By-Byte Image creation
- Bitmaps
- Reading a header
- Inverting RBGs
- Buffers In JS
- Node.js Version 14.15 / NPM / TypeScript / Possibly VSCode (to make things easier)?