how to detect corrupted file
frederic chaume
frederic.chaume at gmail.com
Thu Apr 13 12:02:00 BST 2023
Hi All
I found an option using exiv2 under windows
>bin\exiv2.exe -pp -q P2280067_DxO-corrupted.jpg
Exiv2 exception in print action for file P2280067_DxO-corrupted.jpg:
P2280067_DxO-corrupted.jpg: The file contains data of an unknown image type
>bin\exiv2.exe -pp -q P2280067_DxO.jpg
Preview 1: image/jpeg, 317x237 pixels, 17356 bytes
>bin\exiv2.exe -pp -q .\P2280067.ORF
Preview 1: image/jpeg, 160x120 pixels, 9080 bytes
Preview 2: image/jpeg, 3200x2400 pixels, 1060974 bytes
I think that could be a good solution to find corrupted jpeg. Based on
this I have some thought
- as exiv2 is native with Digikam, I guess such error could be visible?
*Is there some "debug level" or some logs somewhere that could report
such errors ?*
- I'm not expert on coding so don't know how to translate such command
to a recursive search on a set of folders?
- seems to apply to raw also , but I don't have corrupted raw to perform
the test
thanks to share your feedbacks and may be other option
Frederic
Le 11/04/2023 à 18:13, plowmail2010 at gmail.com a écrit :
>
> Yes, disk space can be a problem. On the other hand, compare the cost
> of disks to the value of your files. 1 TB SSD's run about $65 USD. A
> 2 TB disk is about $60.
> My search for "validate jpg files" revealed several candidates, but
> they seem intended for programmer/geek people. For example, the JPG
> data begin with FFD8 hex and end with FFD9. So all you need do is
> find or write a program to test for those values. And sure enough,
> people have done that, if you can figure out how to build/install on
> unix/linux.
> Maybe this repair site will help:
> https://online.officerecovery.com/pixrecovery/ I have not tried it.
> (Confession: I am a former programmer/geek. Now I am just a geek.)
>
> Bob
>
> On 4/11/2023 10:51 AM, frederic chaume wrote:
>> I'm using FreefileSync each time I import new raw files. It includes
>> a version management, but I had to remove it the because of the disk
>> space used, so today I'm relying on the network trashbin plus a
>> regular backup on an another disk.
>> But clearly not enough 🙁
>>
>> What could help is to be able to validate the integrity of the
>> collections and/or the backup. So if any idea is welcome
>>
>> Frederic
>>
>>
>> Le 11/04/2023 à 16:34, plowmail2010 at gmail.com a écrit :
>>> On 4/11/2023 6:30 AM, frederic chaume wrote:
>>>> my concern is that running another backup may overwrite the correct
>>>> file by a acorrupted version, that's why I'm trying to make a check
>>>> before another backup
>>>
>>> Off on a tangent...
>>> If your backup procedure can overwrite older backups, you need to
>>> use a better backup.
>>> I, too, am a victim of Windows.
>>> I use Macrium Reflect ($69 USD).
>>> I don't know how to make it overwrite earlier backups. It's
>>> probably impossible.
>>>
>>> Bob
>>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/digikam-users/attachments/20230413/2bb04040/attachment.htm>
More information about the Digikam-users
mailing list