This program helps recover JPEG files that have been accidentally deleted or lost due to partition format.
go get -u github.com/fxor/jpeg-recovery
Clone the repository and navigate to the Python version:
git clone https://github.com/your/repository.git
cd repository/python-version
# Install dependencies if required
# Example: pip install -r requirements.txt
jpeg-recovery -f discImage.img
JPEG files will be saved to the current directory.
jpeg-recovery -f /dev/sda
jpeg-recovery -f discImage.img -b 4096
Increase block size to speed up the recovery process or decrease for more accurate search. The default block size is 512 bytes, typically suitable for most filesystems.
Ensure Python 3.x is installed and navigate to the Python version directory:
cd repository/python-version
python main.py -f discImage.img
python main.py -f /dev/sda
python main.py -f discImage.img -b 4096
Similar to the Go version, adjust the block size for different trade-offs between speed and accuracy.
- For the Go version, ensure your GOPATH is set up correctly and
jpeg-recovery
binary is in your PATH after installation. - For the Python version, ensure dependencies are installed (
argparse
is typically included in Python standard library). - Adjust block size carefully based on the characteristics of the storage medium and the desired recovery speed/accuracy balance.