Page 1 of 1

Damaged/corrupt image file handling

Posted: Thu Feb 12, 2009 2:34 am
by Ty
Hello gentlemen,

(and also Helmut)

Today I received a picture from a friend, but what I tried to open it I got an error saying "<Big> Warning: Error reading the file <filename>".

This was in a standard Windows error dialog box.

Problem #1:

There should be something on the dialog box error message that says "XnView". I have about ten imaging programs--none as nice as XnView, of course!!--and I needed to know which one of them was sending that message.

Problem #2:

YOU decide if this is a problem; I'll just report it.

--Picasa opened the file without complaint.

--Microsoft Photo Editor 3.xx gave an error but then opened itself with no image

--Opera opened it without complaint.

--Windows Paint 5.1 opened it without complaint.

--Microsoft Office Picture Manager opened it without complaint.

My hope would be that XnView, which is obviously the most powerful and useful and sophisticated imaging program available, would (a) report the error with more detail, and (b) be able to open any file that any other imaging program could open.

Cheers and regards,

Ty

Re: Damaged/corrupt image file handling

Posted: Thu Feb 12, 2009 7:36 am
by xnview
Could you send me the file, please?

Posted: Thu Feb 12, 2009 7:55 am
by Ty
Pierre--

I can't remember how to send you files, so here is a link:

http://www.microsabio.net/xn1.zip

Posted: Thu Feb 12, 2009 10:27 am
by xnview
Ty wrote:Pierre--

I can't remember how to send you files, so here is a link:

http://www.microsabio.net/xn1.zip
I can open it if you enable option/Read-write/Ignore read errors

Posted: Thu Feb 12, 2009 2:41 pm
by Ty
Thanks for the quick reply, Pierre.

I think this is a case where one should not have to be an expert XnView user--and therefore know about things like "ignore read errors"--in order to open the image. In my opinion, it would be better to open the file when asked, and then display a message saying "file is damaged" or something of the sort. Just not opening the file is not the best approach, and should not be the default, again in my opinion.

Also, the message should say "XnView" as I mentioned earlier.

But of course it's up to your best judgment. Thanks for looking into the matter.

Ty

Posted: Fri Feb 13, 2009 12:05 am
by helmut
Right, would be good if XnView would be more verbose and tell about the problem. A wrong file extension is another situation, where a message box would be very helpful (e.g. file format is JPG, but file extension is ".abc").

Greetings to you, Ty!

Posted: Fri Feb 13, 2009 12:34 am
by Ty
Hello to you too, Helmut!

I hope you noticed that my bug/problem/situation report began with a friendly--if humorous--hello to you.

I'm still making help files, and still interested in helping with XnView, and still don't know a way around the problems of (a) language, and (b) updating. Any new ideas on your part?