This is a simple GUI tool for repairing JPEG images by shifting MCU and applying auto color enhancements.
This tool is built using Python and PyQt6. It provides a user-friendly interface to repair JPEG images corrupted due to encryption or other issues.
- Select a reference JPEG image and an encrypted folder containing corrupted JPEG images.
- Repair corrupted JPEG images by shifting MCU and applying necessary adjustments.
- Automatically enhance colors of repaired images.
- User-friendly GUI with buttons for easy interaction.
- Python 3.x
- PyQt6
- NumPy
- Pillow (PIL)
pip install pyqt6 numpy pillow
- Install the required dependencies.
- Run the script
jpeg_repair_tool.py
. - Use the buttons to select the reference JPEG image and the encrypted folder.
- Click on "Repair JPEGs" to start the repair process.
- Optionally, click on "Auto Color" to enhance the colors of repaired images.
- Monitor the output in the text area for progress and errors.
The tool first identifies the MCU shift required for each corrupted JPEG image. Then, it applies the necessary shift and saves the repaired images. Optionally, it applies auto color enhancement to improve the visual quality of the images.
This project is licensed under the Creative Commons Attribution-NonCommercial 4.0 International License (CC BY-NC 4.0). See the LICENSE file for details.
- This tool is inspired by the need to recover corrupted JPEG images efficiently.
- Special thanks to the developers of PyQt6, NumPy, and Pillow for their amazing libraries.