Skip to content

Latest commit

 

History

History
48 lines (30 loc) · 1.77 KB

README.md

File metadata and controls

48 lines (30 loc) · 1.77 KB

JPEG Repair Tool

2024-04-24_004544

This is a simple GUI tool for repairing JPEG images by shifting MCU and applying auto color enhancements.

Overview

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.

Features

  • 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.

Requirements

  • Python 3.x
  • PyQt6
  • NumPy
  • Pillow (PIL)

pip install pyqt6 numpy pillow

Usage

  1. Install the required dependencies.
  2. Run the script jpeg_repair_tool.py.
  3. Use the buttons to select the reference JPEG image and the encrypted folder.
  4. Click on "Repair JPEGs" to start the repair process.
  5. Optionally, click on "Auto Color" to enhance the colors of repaired images.
  6. Monitor the output in the text area for progress and errors.

How it works

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.

License

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.

Acknowledgments

  • 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.