This forum has been archived. All content is frozen. Please use KDE Discuss instead.

[closed] Recovered file can't be opened

Tags: None
(comma "," separated)
User avatar
Tepee
Registered Member
Posts
48
Karma
0
OS
Hello,
few days ago, I accidentally deleted one of my digital painting (in fact, it is a sync problem with a cloud provider, so the file was nor on my computer, nor in the trash bin, just deleted).
I succeed to recover it (or a similar one) with Photorec, a great software. But when I try to open it, Krita-Lime crashes.
So I can't be sure to have recover it. Maybe the file is corrupted.
I had a look in the file (as .kra is a container), and all seems OK, but I am not an expert...

Would someone could try to help me, by trying to open it and save it again, or to fix the file in an another way ?

Here were you can download my "precious" :
https://hubic.com/home/pub/?ruid=aHR0cH ... wMTM3MTk3#

It would be marvelous because this file represents about 30 hours of work... :(

Last edited by Tepee on Fri May 02, 2014 12:16 pm, edited 1 time in total.


Comics, paintings and other creations at https://www.tepee.me
User avatar
halla
KDE Developer
Posts
5092
Karma
20
OS

Re: Recovered file can't be opened

Tue Apr 15, 2014 8:27 pm
A krita file is zipfile -- if zip tools can open it, there's hope... I'll take a look.
User avatar
halla
KDE Developer
Posts
5092
Karma
20
OS

Re: Recovered file can't be opened

Tue Apr 15, 2014 8:35 pm
Okay, looking with unzip, it's layer11 that is definitely broken...

A new kra file without that layer:

http://www.valdyas.org/~boud/7-tepee-la ... AYER11.kra

I'm afraid that that might have been the essential layer -- it was the biggest... And I cannot recover it :-(
User avatar
Tepee
Registered Member
Posts
48
Karma
0
OS

Re: Recovered file can't be opened

Tue Apr 15, 2014 8:50 pm
By the way, thank you boudewijn ! because I feel as if I had crashed a real painting with a car...
I just looked on your file, and yes, the broken layer was the big essential one... :(
But it is already better than nothing as in last solution, I might try to use a low-def jpeg file I had made to insert it as new layer and rework on it...

Are .kra files are "really" zip files ? Maybe I could try a Zip file recover ?


Comics, paintings and other creations at https://www.tepee.me
User avatar
Tepee
Registered Member
Posts
48
Karma
0
OS

Re: Recovered file can't be opened

Tue Apr 15, 2014 11:31 pm
After rename the .kra to .zip, with a windows recovery software, I succeed to extract the layer 11.
But after renaming the repaired zip in .kra, it still crashes...
Here is the layer 11 :
https://hubic.com/home/pub/?ruid=aHR0cH ... wMTk2Mzg5#

Do you have any idea ?


Comics, paintings and other creations at https://www.tepee.me
User avatar
halla
KDE Developer
Posts
5092
Karma
20
OS

Re: Recovered file can't be opened

Wed Apr 16, 2014 7:31 am
With a bit of judicious patching it is, in fact, possible to make Krita not crash on the broken the file. However, in that case, only two smallish strips of image can be recovered.

Here's the patch, it can be applied to git master: http://paste.kde.org/pkx1l7xcj

And here's the result: http://www.valdyas.org/~boud/7-tepee-la ... overed.kra

The thing to do now is decide what is better for Krita: assert on loading a broken image, or load it anyway and give the user a message that it's broken.
User avatar
halla
KDE Developer
Posts
5092
Karma
20
OS

Re: Recovered file can't be opened

Wed Apr 16, 2014 8:27 am
For now, we don't assert or crash anymore and give the user a message that the image cannot be loaded. To make it loadable anyway needs more work...
User avatar
Tepee
Registered Member
Posts
48
Karma
0
OS

Re: Recovered file can't be opened

Sat Apr 19, 2014 6:51 pm
Thank you very much for the file with the "only two smallish strips".
It has permit me to recover the paint of the girl in red. For the big overall painting, I will see to include behind the girl the picture I saved (in low definition :( ) on my website...
By the way, it is much better than nothing :)

About the ability to repair files for Krita, I think my problem was very particular. For me, I had never broken files in normal case...
So it is maybe not very useful to spend time on it ?

And about recovering erased files, I had been in contact with Christophe GRENIER who develop PhotoRec (http://www.cgsecurity.org/wiki/PhotoRec). And now, his software can recover .kra and .ora files ^-^ (if they are not completly corrupted as mine of course). Thank you Christophe !

In bad news there can be good news...


Comics, paintings and other creations at https://www.tepee.me
User avatar
Deevad
Registered Member
Posts
451
Karma
1
OS

Re: Recovered file can't be opened

Sat Apr 19, 2014 8:04 pm
Tepee wrote:And about recovering erased files, I had been in contact with Christophe GRENIER who develop PhotoRec (http://www.cgsecurity.org/wiki/PhotoRec). And now, his software can recover .kra and .ora files ^-^

*.ora and *.kra tool recovery ; That's really cool ! :)


User avatar
halla
KDE Developer
Posts
5092
Karma
20
OS

Re: Recovered file can't be opened

Mon Apr 28, 2014 7:55 am
It's always good to make file handling as robust as possible! And a nice bit of news about Photorec, tweeted and g+'ed it. I had never before heard of this application!
User avatar
Tepee
Registered Member
Posts
48
Karma
0
OS
Yep, PhotoRec seems to be a usefull software.
So I close the subject.


Comics, paintings and other creations at https://www.tepee.me


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot], ourcraft