Repair Corrupted JPG Files

dumfy

New member
Member
Local time
8:48 AM
Messages
53
Hi All,

I'm on a mercy mission for my brother-in-law to repair some precious jpeg files that have been corrupted. Is this possible?

I've managed to recover all the files using data recovery software and had some luck in getting around half back to jpegs that will display.

Here's what happened . . . All his photos were on his Android phone and he was short of space. He decided to move them to the microSD card and free up some space. He didn't use the "copy" option unfortunately.

Something went wrong during the move and he ended up with a load of unreadable jpegs.

I've Googled around jpeg repair software (not recovery) but there doesn't seem to be around that proves successful.

Any recommendations and help would be greatly appreciated.

With kind regards & many thanks

Dumfy
 

My Computer My Computer

At a glance

Microsoft Windows 7 Home Premium 64-bit 7601 ...AMD Phenom(tm) II X4 955 Processor8.00 GBATI Radeon HD 5700 Series
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self Build
OS
Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
CPU
AMD Phenom(tm) II X4 955 Processor
Motherboard
Gigabyte Technology Co., Ltd. GA-MA790FXT-UD5P
Memory
8.00 GB
Graphics Card(s)
ATI Radeon HD 5700 Series
Sound Card
(1) ATI HDMI Audio (2) Realtek High Definition Audio
Monitor(s) Displays
ViewSonic VX2260wm
Screen Resolution
1920 x 1080 x 32 bits (4294967296 colors) @ 60 Hz
Hard Drives
(1) SAMSUNG HD103UJ ATA Device (2) SanDisk SDSSDX120GG25 ATA Device (3) WDC WD10EARS-00Y5B1 ATA Device (4) Y-E DATA USB HS-CF Card USB Device (5) Y-E DATA USB HS-MS Card USB Device (6) Y-E DATA USB HS-SD Card USB Device (7) Y-E DATA
PSU
Antec 650Watt
Case
Antec 900 II
Cooling
Zalman CNPs10X
Keyboard
Microsoft
Mouse
Microsoft
Internet Speed
20MB
Antivirus
MS Security Essentials
Browser
Firefox/IE
Have you checked the photos are not on Google photos a lot of phones backup to it by default
 

My Computer My Computer

At a glance

win 8 32 bit
Computer type
PC/Desktop
OS
win 8 32 bit
That's a good idea, thanks and I'll check. Somehow, I don't think his account will be setup to auto upload to Google Photos.

My best chance is to find a way of repairing damaged jpegs . .

Kind regards

Dumfy
 

My Computer My Computer

At a glance

Microsoft Windows 7 Home Premium 64-bit 7601 ...AMD Phenom(tm) II X4 955 Processor8.00 GBATI Radeon HD 5700 Series
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self Build
OS
Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
CPU
AMD Phenom(tm) II X4 955 Processor
Motherboard
Gigabyte Technology Co., Ltd. GA-MA790FXT-UD5P
Memory
8.00 GB
Graphics Card(s)
ATI Radeon HD 5700 Series
Sound Card
(1) ATI HDMI Audio (2) Realtek High Definition Audio
Monitor(s) Displays
ViewSonic VX2260wm
Screen Resolution
1920 x 1080 x 32 bits (4294967296 colors) @ 60 Hz
Hard Drives
(1) SAMSUNG HD103UJ ATA Device (2) SanDisk SDSSDX120GG25 ATA Device (3) WDC WD10EARS-00Y5B1 ATA Device (4) Y-E DATA USB HS-CF Card USB Device (5) Y-E DATA USB HS-MS Card USB Device (6) Y-E DATA USB HS-SD Card USB Device (7) Y-E DATA
PSU
Antec 650Watt
Case
Antec 900 II
Cooling
Zalman CNPs10X
Keyboard
Microsoft
Mouse
Microsoft
Internet Speed
20MB
Antivirus
MS Security Essentials
Browser
Firefox/IE
From what I could find out you may be out of luck. Depending on what part(s) of the file were/are damaged. If it was the header then you may be able to open the file in a hex editor and repair it/them manually. If its corrupted/lost inside then ................. it ain't looking good.
 

My Computer My Computer

At a glance

Windows 10x64 Build 1709Intel i7 7700HQ Kaby Lake16 GB DDR4 @2400Nvidia Geforce GTX 1060
Computer type
Laptop
Computer Manufacturer/Model Number
MSI GE72VR Apache Pro-416
OS
Windows 10x64 Build 1709
CPU
Intel i7 7700HQ Kaby Lake
Motherboard
Micro-Star Intl. MS-179B (U3C1)
Memory
16 GB DDR4 @2400
Graphics Card(s)
Nvidia Geforce GTX 1060
Screen Resolution
1920x1080 120Hz
Hard Drives
256 GB Nvme M.2 SSD

1TB HDD@7200
Cooling
Cooler Blast 4
Keyboard
Steel Series
Antivirus
Bit Defender Free
Browser
Edge

My Computer My Computer

At a glance

Linux Mint 18.2 xfce 64-bit (VMWare host) / W...Haswell4 GB
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Dell
OS
Linux Mint 18.2 xfce 64-bit (VMWare host) / Windows 8.1 Pro 32-bit (VMWare guest)
CPU
Haswell
Memory
4 GB
Monitor(s) Displays
Acer 23"
Screen Resolution
1920 x 1080
Hard Drives
Two hard drives, 1TB each: One for Linux, one for my data.
Keyboard
IBM Model M
Antivirus
Sophos (Linux), Trend Micro (Windows)
Browser
Firefox, Opera
Other Info
I use Samba to share my data drive with the other computers at my house and with my guest session in VMWare Workstation Player.
Thanks for the replies everyone. I've tried most of the progs in the links provided, but they wouldn't recognise the damaged files, so it doesn't bode well.

I never used a hex editor so will give that a try as perhaps a last hope. How do I use it? How would I know if it's just the header that is corrupt and not the file itself as well?
Any recommendations for hex editors for a newbie/layman to use?

Thanks as always,

Dumfy
 

My Computer My Computer

At a glance

Microsoft Windows 7 Home Premium 64-bit 7601 ...AMD Phenom(tm) II X4 955 Processor8.00 GBATI Radeon HD 5700 Series
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self Build
OS
Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
CPU
AMD Phenom(tm) II X4 955 Processor
Motherboard
Gigabyte Technology Co., Ltd. GA-MA790FXT-UD5P
Memory
8.00 GB
Graphics Card(s)
ATI Radeon HD 5700 Series
Sound Card
(1) ATI HDMI Audio (2) Realtek High Definition Audio
Monitor(s) Displays
ViewSonic VX2260wm
Screen Resolution
1920 x 1080 x 32 bits (4294967296 colors) @ 60 Hz
Hard Drives
(1) SAMSUNG HD103UJ ATA Device (2) SanDisk SDSSDX120GG25 ATA Device (3) WDC WD10EARS-00Y5B1 ATA Device (4) Y-E DATA USB HS-CF Card USB Device (5) Y-E DATA USB HS-MS Card USB Device (6) Y-E DATA USB HS-SD Card USB Device (7) Y-E DATA
PSU
Antec 650Watt
Case
Antec 900 II
Cooling
Zalman CNPs10X
Keyboard
Microsoft
Mouse
Microsoft
Internet Speed
20MB
Antivirus
MS Security Essentials
Browser
Firefox/IE
I have a little bit of experience fixing files using a hex editor. Here's the idea behind it:

Data is written to the drive in Binary ("Base 2", or 0's and 1's), not in plain English. Binary can be translated into Hexadecimal ("Base 16", 16 digits in the hexadecimal numbering system) without any loss of data; and Hex is much more readable than binary.

A hex editor shows you what is on the disk either as hex (if it can't translate it) or as plain English (if it can translate it -- for example, a path and filename, if present, will likely be shown in plain English).

When you browse through a file using a hex editor, you will hopefully see enough stuff in plain English to help you figure out where the errors are. If an error is in one of the plain English parts of the file, you can likely make changes to those parts of the file, correcting that error. For example, if the path or filename is corrupted, you could make the corrections to the path or filename, fixing the error. These sorts of corrections can be done with confidence. It's more sketchy if the errors occur in the hexadecimal stuff. Since it is displayed in hexadecimal and not plain English, it's harder to know (1) where the errors are, and (2) how to fix them.

If possible, make copies of the files before editing them with a hex editor. In this way, if you mess something up, you can get back to the previous condition of a file.

Good luck.
 
Last edited:

My Computer My Computer

At a glance

Linux Mint 18.2 xfce 64-bit (VMWare host) / W...Haswell4 GB
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Dell
OS
Linux Mint 18.2 xfce 64-bit (VMWare host) / Windows 8.1 Pro 32-bit (VMWare guest)
CPU
Haswell
Memory
4 GB
Monitor(s) Displays
Acer 23"
Screen Resolution
1920 x 1080
Hard Drives
Two hard drives, 1TB each: One for Linux, one for my data.
Keyboard
IBM Model M
Antivirus
Sophos (Linux), Trend Micro (Windows)
Browser
Firefox, Opera
Other Info
I use Samba to share my data drive with the other computers at my house and with my guest session in VMWare Workstation Player.
A big thank you mrjimphelps

I'll give it a go and fingers crossed. I'll be sure to copy/backup any files first though.

Just one quick question before I head of into hex land . . . any particular editors you can recommend please? Something for a newbie perhaps - unless all editors are the same.

Kind regards

Dumfy


I have a little bit of experience fixing files using a hex editor. Here's the idea behind it:

Data is written to the drive in Binary ("Base 2", or 0's and 1's), not in plain English. Binary can be translated into Hexadecimal ("Base 16", 16 digits in the hexadecimal numbering system) without any loss of data; and Hex is much more readable than binary.

A hex editor shows you what is on the disk either as hex (if it can't translate it) or as plain English (if it can translate it -- for example, a path and filename, if present, will likely be shown in plain English).

When you browse through a file using a hex editor, you will hopefully see enough stuff in plain English to help you figure out where the errors are. If an error is in one of the plain English parts of the file, you can likely make changes to those parts of the file, correcting that error. For example, if the path or filename is corrupted, you could make the corrections to the path or filename, fixing the error. These sorts of corrections can be done with confidence. It's more sketchy if the errors occur in the hexadecimal stuff. Since it is displayed in hexadecimal and not plain English, it's harder to know (1) where the errors are, and (2) how to fix them.

If possible, make copies of the files before editing them with a hex editor. In this way, if you mess something up, you can get back to the previous condition of a file.

Good luck.
 

My Computer My Computer

At a glance

Microsoft Windows 7 Home Premium 64-bit 7601 ...AMD Phenom(tm) II X4 955 Processor8.00 GBATI Radeon HD 5700 Series
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self Build
OS
Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
CPU
AMD Phenom(tm) II X4 955 Processor
Motherboard
Gigabyte Technology Co., Ltd. GA-MA790FXT-UD5P
Memory
8.00 GB
Graphics Card(s)
ATI Radeon HD 5700 Series
Sound Card
(1) ATI HDMI Audio (2) Realtek High Definition Audio
Monitor(s) Displays
ViewSonic VX2260wm
Screen Resolution
1920 x 1080 x 32 bits (4294967296 colors) @ 60 Hz
Hard Drives
(1) SAMSUNG HD103UJ ATA Device (2) SanDisk SDSSDX120GG25 ATA Device (3) WDC WD10EARS-00Y5B1 ATA Device (4) Y-E DATA USB HS-CF Card USB Device (5) Y-E DATA USB HS-MS Card USB Device (6) Y-E DATA USB HS-SD Card USB Device (7) Y-E DATA
PSU
Antec 650Watt
Case
Antec 900 II
Cooling
Zalman CNPs10X
Keyboard
Microsoft
Mouse
Microsoft
Internet Speed
20MB
Antivirus
MS Security Essentials
Browser
Firefox/IE
It's been a very long time since I did any hex editing, so I don't have any current knowledge about hex editors.
 

My Computer My Computer

At a glance

Linux Mint 18.2 xfce 64-bit (VMWare host) / W...Haswell4 GB
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Dell
OS
Linux Mint 18.2 xfce 64-bit (VMWare host) / Windows 8.1 Pro 32-bit (VMWare guest)
CPU
Haswell
Memory
4 GB
Monitor(s) Displays
Acer 23"
Screen Resolution
1920 x 1080
Hard Drives
Two hard drives, 1TB each: One for Linux, one for my data.
Keyboard
IBM Model M
Antivirus
Sophos (Linux), Trend Micro (Windows)
Browser
Firefox, Opera
Other Info
I use Samba to share my data drive with the other computers at my house and with my guest session in VMWare Workstation Player.
I downloaded a hex editor and gave it a go. It does seem to my novice eyes with this sort of thing that the files are completely corrupted.

I opened a known good photo in the editor not knowing what to expect to see. It made sense though - it was all hex code 0A 14 etc.

When I opened a corrupted file - and all the other corrupted ones - it was a page full of "F"s.

So I assume this means that the photos are unrecoverable no matter what?

All the best

Dumfy
 

My Computer My Computer

At a glance

Microsoft Windows 7 Home Premium 64-bit 7601 ...AMD Phenom(tm) II X4 955 Processor8.00 GBATI Radeon HD 5700 Series
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self Build
OS
Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
CPU
AMD Phenom(tm) II X4 955 Processor
Motherboard
Gigabyte Technology Co., Ltd. GA-MA790FXT-UD5P
Memory
8.00 GB
Graphics Card(s)
ATI Radeon HD 5700 Series
Sound Card
(1) ATI HDMI Audio (2) Realtek High Definition Audio
Monitor(s) Displays
ViewSonic VX2260wm
Screen Resolution
1920 x 1080 x 32 bits (4294967296 colors) @ 60 Hz
Hard Drives
(1) SAMSUNG HD103UJ ATA Device (2) SanDisk SDSSDX120GG25 ATA Device (3) WDC WD10EARS-00Y5B1 ATA Device (4) Y-E DATA USB HS-CF Card USB Device (5) Y-E DATA USB HS-MS Card USB Device (6) Y-E DATA USB HS-SD Card USB Device (7) Y-E DATA
PSU
Antec 650Watt
Case
Antec 900 II
Cooling
Zalman CNPs10X
Keyboard
Microsoft
Mouse
Microsoft
Internet Speed
20MB
Antivirus
MS Security Essentials
Browser
Firefox/IE
That's what it sounds like. If the file still had meaningful information in it, it would have different characters, not all 'F's. That's likely why you couldn't recover anything using recovery software.
 

My Computer My Computer

At a glance

Linux Mint 18.2 xfce 64-bit (VMWare host) / W...Haswell4 GB
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Dell
OS
Linux Mint 18.2 xfce 64-bit (VMWare host) / Windows 8.1 Pro 32-bit (VMWare guest)
CPU
Haswell
Memory
4 GB
Monitor(s) Displays
Acer 23"
Screen Resolution
1920 x 1080
Hard Drives
Two hard drives, 1TB each: One for Linux, one for my data.
Keyboard
IBM Model M
Antivirus
Sophos (Linux), Trend Micro (Windows)
Browser
Firefox, Opera
Other Info
I use Samba to share my data drive with the other computers at my house and with my guest session in VMWare Workstation Player.
Back
Top