A modernized, Python 3 compatible version of the original PCRT (PNG Check & Repair Tool).
This project is a port and enhancement of the original tool by sherlly. Full credit for the original concept and features goes to the original repository.
- ✅ Fix common PNG errors (Header, IHDR/IDAT CRCs, IEND chunk).
- ✅ Display detailed image metadata.
- ✅ Extract data appended after the
IENDchunk. - ✅ Inject text payloads into image chunks (steganography).
- ✅ Decompress raw image data and bruteforce dimensions.
- ✅ Automatically preview the repaired image.
- Clone the repository:
git clone [https://github.com/coderustypro/PCRT-Python3.git](https://github.com/coderustypro/PCRT-Python3.git) cd PCRT-Python3 - Run the tool:
The script requires the
Pillowlibrary. If it fails, runpip install Pillow.python3 PCRT.py --help
Check and repair a broken image:
python3 PCRT.py -i secret_image.pngHere is an example of a corrupted image (secret_image.png) being repaired into output.png.
| Before (Corrupt) | After (Repaired) |
|---|---|
![]() |
![]() |

