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
To install the JPEG Repair Tool:
- Download the latest release from the releases page.
- Extract the contents to a directory.
- Ensure you have Python installed. You can download it from python.org.
- Install the required dependencies:
pip install -r requirements.txt
- 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 the images.
We welcome contributions! To contribute:
- Fork the repository.
- Create a new branch.
- Make your changes.
- Submit a pull request.
For issues or suggestions, please open an issue on GitHub.
This project is licensed under the GNU General Public License (GPL). See the LICENSE file for details.
For support or questions, please contact us at hanaloginstruments@gmail.com.