Skip to content

DRCRecoveryData/jpeg-recovery

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JPEG File Recovery Tool

This program helps recover JPEG files that have been accidentally deleted or lost due to partition format.

Install

Go Version

go get -u github.com/fxor/jpeg-recovery

Python Version

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

Usage

Go Version

Recover from image file

jpeg-recovery -f discImage.img

JPEG files will be saved to the current directory.

Recover directly from device

jpeg-recovery -f /dev/sda

Changing block size

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.

Python Version

Ensure Python 3.x is installed and navigate to the Python version directory:

cd repository/python-version

Recover from image file

python main.py -f discImage.img

Recover directly from device

python main.py -f /dev/sda

Changing block size

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.

Notes

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 51.9%
  • Python 48.1%