Open
Bug 216538
Opened 21 years ago
Updated 2 years ago
Support correct error messages for image decoding problems
Categories
(Core :: Graphics: ImageLib, defect)
Core
Graphics: ImageLib
Tracking
()
NEW
People
(Reporter: megabyte, Unassigned)
Details
The generic "image could not be displayed because it contains errors" message is
not always suitable, and may be downright incorrect. Thus, the decoder should
be able to pass a string with the actual problem so the user can see what's
wrong (i.e. feature not supported). See bug 204520 comment 75.
Comment 1•21 years ago
|
||
The error message is generated before Mozilla loads the a image file.
If you load a image Url, Mozilla generates a hidden html file with a IMG SRC
link and the error message as ALT text.
(you can see that if you load a image URL and open the image properties)
I think the current error message is ok for Joe User and that we don't need more
informations.
Comment 2•21 years ago
|
||
looks like the statusArg argument of imgIDecoderObserver::OnStopDecode is meant
for this:
http://lxr.mozilla.org/seamonkey/source/modules/libpr0n/public/imgIDecoderObserver.idl#77
now nsImageDocument.cpp
http://lxr.mozilla.org/seamonkey/source/content/html/document/src/nsImageDocument.cpp#424
must only be changed to make use of that parameter, e.g. change the alt text,
and the decoders must pass the error message to onstopdecode.
Reporter | ||
Comment 3•21 years ago
|
||
Matti: the way that that HTML file is generated already has a bug filed against
it (the ALT text for the image shows that same error message). While we might
not need more information now, we will as soon as MNG-VLC goes in.
Comment 4•21 years ago
|
||
The real problem I see with current implementation is that we tell the user "the
image has errors" even if just our processing of the image showed up errors or
we don't support some feature the image is using or some subformat it is using.
If the decoders knows about an error other than a corrupted/malformed image, and
let us know about it, I believe we should also tell the user.
The message could be changed to:
"image could not be displayed. <reason>"
Comment 6•18 years ago
|
||
Whats wrong about this generic warning is that it doesn't convey wether
- the image contains an error
- Firefox (imagelib) doesn't support the format, Bug 44781 Support CMYK, YCCK JPEGs
- Firefox (imagelib) is broken
I had to download the image, check locally using irfanview to see the bug is in Mozilla, then had to search imagelib for its 167 open bugs to find Bug 44871
Assignee: jdunn → nobody
QA Contact: tpreston → imagelib
Comment 7•13 years ago
|
||
Indeed we should try to do a better job here.
Summary: Support custom error messages for image decoding problems → Support correct error messages for image decoding problems
Target Milestone: mozilla1.7alpha → ---
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•