CR2-Repair-Tool is a PyQt6 application for repairing CR2 image files using a reference CR2 file. Provides a user-friendly GUI.
- Python 3.x
- PyQt6
- rawpy
- imageio
pip install pyqt6 rawpy imageio
-
Clone the repository or download the
cr2repair-gui.py
file. -
Install PyQt6 if you haven't already:
pip install PyQt6
-
Run the
cr2repair-gui.py
file:python cr2repair-gui.py
-
The GUI window will appear. Use the "Browse" buttons to select the reference CR2 file and the encrypted folder.
-
Click the "Repair" button to start the repair process.
-
Progress will be displayed in the progress bar and log box. Once the repair is complete, a success message will appear.
- The tool reads the reference CR2 file and locates the offset header.
- It then scans the encrypted folder for CR2 files to be repaired.
- For each file found, it copies the data after the offset header from the reference file and writes it to a new file in the "Repaired" folder.
- The process is tracked in the log box, and progress is shown in the progress bar.
- The GUI features modern blue buttons styled with CSS to enhance the user experience.
- This tool is specifically designed for repairing CR2 files and may not work with other file formats.
- It assumes that the reference CR2 file and the encrypted files have a specific structure, so results may vary with different files.
- Use this tool at your own risk. Always make backups of your files before attempting any modifications.