An open API service indexing awesome lists of open source software.

https://github.com/toasterbirb/bmp-patch

[MIRROR] Fix corrupted .bmp file headers
https://github.com/toasterbirb/bmp-patch

Last synced: about 2 months ago
JSON representation

[MIRROR] Fix corrupted .bmp file headers

Awesome Lists containing this project

README

          

# bmp-patch

Fix partially corrupted bmp files. Usage: `bmp-patch ./path_to_a_bmp_file`

## Features
- Attempt to recover some header values like the signature bytes and file size.
- Modify the width, height, resolution and color values
- Modify header size and data offset

## Building
Build the project with g++ by running `make`. To speed up the build, you can try using the -j flag.
```sh
make -j$(nproc)
```

## Installation
To install bmp-patch to /usr/local/bin, run the following
```sh
make install
```
You can customize the installation prefix with the PREFIX variable like so
```sh
make PREFIX=/usr install
```

## Uninstall
```sh
make uninstall
```