Damaged/corrupt image file handling

Bugs found in XnView Classic. Please report only one bug per topic!

Moderators: XnTriq, xnview

Post Reply
User avatar
Ty
Posts: 146
Joined: Thu Feb 23, 2006 3:18 am
Location: San Luis Obispo, California

Damaged/corrupt image file handling

Post by Ty » Thu Feb 12, 2009 2:34 am

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

User avatar
xnview
Author of XnView
Posts: 33205
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Damaged/corrupt image file handling

Post by xnview » Thu Feb 12, 2009 7:36 am

Could you send me the file, please?
Pierre.

User avatar
Ty
Posts: 146
Joined: Thu Feb 23, 2006 3:18 am
Location: San Luis Obispo, California

Post by Ty » Thu Feb 12, 2009 7:55 am

Pierre--

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

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

User avatar
xnview
Author of XnView
Posts: 33205
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Post by xnview » Thu Feb 12, 2009 10:27 am

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

User avatar
Ty
Posts: 146
Joined: Thu Feb 23, 2006 3:18 am
Location: San Luis Obispo, California

Post by Ty » Thu Feb 12, 2009 2:41 pm

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

User avatar
helmut
Posts: 8213
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Post by helmut » Fri Feb 13, 2009 12:05 am

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!

User avatar
Ty
Posts: 146
Joined: Thu Feb 23, 2006 3:18 am
Location: San Luis Obispo, California

Post by Ty » Fri Feb 13, 2009 12:34 am

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?

Post Reply