Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

# BMP Image Terminal Viewer

This project demonstrates how to read, parse, downscale, and display BMP images in a terminal using Node.js.

## Features

- **Read BMP File:** Reads a BMP image file synchronously.
- **Parse BMP Header:** Extracts header information from the BMP file.
- **Extract Pixel Data:** Extracts pixel RGB data from the BMP file.
- **Downscale Image:** Resizes the image to fit within terminal dimensions.
- **Display in Terminal:** Displays the downscaled image using ANSI escape codes.

## Usage

### Prerequisites

- Node.js installed on your machine.

### Installation

1. Clone the repository:

   ```bash
   git clone https://github.com/AzazAhmedLipu79/EchoPixel
   cd EchoPixel
  1. Install dependencies:

    npm install

Running the Program

Replace enc-output.bmp with your BMP image file name in index.js if necessary.

Run the program:

node main.js

Example

Below is an example of how the program displays a BMP image in the terminal:

!1719385419668Terminal Screenshot

Contributing

Contributions are welcome! Please fork the repository and submit pull requests.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages