Skip to content

A modernized Python 3 version of sherlly's PCRT (PNG Check & Repair Tool)

License

Notifications You must be signed in to change notification settings

CodeRustyPro/PCRT-Python3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PCRT (PNG Check & Repair Tool) - Python 3 Version

Python 3.6+ Version 2.0 License: MIT

A modernized, Python 3 compatible version of the original PCRT (PNG Check & Repair Tool).

Acknowledgment

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.


Key Features

  • ✅ Fix common PNG errors (Header, IHDR/IDAT CRCs, IEND chunk).
  • ✅ Display detailed image metadata.
  • ✅ Extract data appended after the IEND chunk.
  • ✅ Inject text payloads into image chunks (steganography).
  • ✅ Decompress raw image data and bruteforce dimensions.
  • ✅ Automatically preview the repaired image.

Installation

  1. Clone the repository:
    git clone [https://github.com/coderustypro/PCRT-Python3.git](https://github.com/coderustypro/PCRT-Python3.git)
    cd PCRT-Python3
  2. Run the tool: The script requires the Pillow library. If it fails, run pip install Pillow.
    python3 PCRT.py --help

Usage

Check and repair a broken image:

python3 PCRT.py -i secret_image.png

Example: Before & After Repair

Here is an example of a corrupted image (secret_image.png) being repaired into output.png.

Before (Corrupt) After (Repaired)
Corrupt Input Image Repaired Output Image

About

A modernized Python 3 version of sherlly's PCRT (PNG Check & Repair Tool)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages