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
- Host: GitHub
- URL: https://github.com/toasterbirb/bmp-patch
- Owner: Toasterbirb
- License: gpl-3.0
- Created: 2025-01-14T20:55:43.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-14T21:26:59.000Z (over 1 year ago)
- Last Synced: 2025-01-14T22:29:31.268Z (over 1 year ago)
- Language: C++
- Size: 31.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```