Closed
Bug 198293
Opened 22 years ago
Closed 22 years ago
support alpha channel for .ico images
Categories
(Core :: Graphics: ImageLib, enhancement, P3)
Core
Graphics: ImageLib
Tracking
()
RESOLVED
FIXED
mozilla1.4beta
People
(Reporter: Biesinger, Assigned: Biesinger)
References
()
Details
Attachments
(2 files, 1 obsolete file)
6.86 KB,
patch
|
tor
:
review+
mscott
:
superreview+
|
Details | Diff | Splinter Review |
3.66 KB,
image/x-icon
|
Details |
http://storm.campus.luth.se/kevel/favicon.ico is an image that's supposed to
have an alpha channel. the ico decoder does not support that yet.
e.g. microangelo can be used to create such an image -
ftp://daxim.ath.cx/muangelo.png
I am not aware of a spec for this.
http://msdn.microsoft.com/library/en-us/dnwui/html/msdn_icons.asp?frame=true
says: "Also remember that the AND mask is a monochrome DIB, with a color depth
of 1 bpp." which kinda contradicts the validness of above ico...
Assignee | ||
Comment 1•22 years ago
|
||
looks like one is supposed to just throw away the "AND-Mask" of the .ico and use
the 4th color bit of each pixel (currently ignored by the ico decoder) as the
alpha value, where 0=transparent 255=opaque.
Assignee | ||
Comment 2•22 years ago
|
||
Assignee | ||
Updated•22 years ago
|
Status: NEW → ASSIGNED
Priority: -- → P3
Target Milestone: --- → mozilla1.4beta
Assignee | ||
Updated•22 years ago
|
Attachment #119623 -
Flags: review?(paper)
Comment 3•22 years ago
|
||
Comment on attachment 119623 [details] [diff] [review]
patch
>- if (mBIH.bpp == 32)
>- p++; // Padding byte
>+ if (mBIH.bpp == 32) {
>+ *alphaPos++ = *p++; // Alpha value
>+ }
Nit: keep existing brace style :-P
Assignee | ||
Comment 4•22 years ago
|
||
Comment on attachment 119623 [details] [diff] [review]
patch
clearing review request, I found a problem with this patch
neil: thanks, fixed it locally
Attachment #119623 -
Flags: review?(paper)
Assignee | ||
Comment 5•22 years ago
|
||
this should be better
Attachment #119623 -
Attachment is obsolete: true
Assignee | ||
Updated•22 years ago
|
Attachment #119842 -
Flags: review?(paper)
Comment 6•22 years ago
|
||
I've looked at the patch, I just need to find time to test it.
Comment 7•22 years ago
|
||
Any reason why http://wp.netscape.com/favicon.ico displays correctly on my Linux
build but not in my Win32 nightly? AFAIK they're both 24-bit displays.
Assignee | ||
Comment 8•22 years ago
|
||
neil: because of a bug in the ico decoder :) please file a new bug for that...
the decoder should zero out the r/g/b data when the pixel is transparent. please
don't assign that bug to me, though :)
Comment 9•22 years ago
|
||
Sprinkling some keywords because Netscape uses 32-bit favicons.
Assignee | ||
Comment 11•22 years ago
|
||
*** Bug 204340 has been marked as a duplicate of this bug. ***
Assignee | ||
Comment 12•22 years ago
|
||
*** Bug 206801 has been marked as a duplicate of this bug. ***
Comment 13•22 years ago
|
||
*** Bug 210397 has been marked as a duplicate of this bug. ***
Comment 14•22 years ago
|
||
Christian, do you need an sr for this bug? I can if you want. I'd like to see
this get fixed for thunderbird.
Assignee | ||
Comment 15•22 years ago
|
||
Comment on attachment 119842 [details] [diff] [review]
patch v2
scott: that would be cool. I'll ask tor for review, then.
Attachment #119842 -
Flags: superreview?(scott)
Attachment #119842 -
Flags: review?(tor)
Attachment #119842 -
Flags: review?(paper)
Attachment #119842 -
Flags: review?(tor) → review+
Updated•22 years ago
|
Attachment #119842 -
Flags: superreview?(scott) → superreview+
Assignee | ||
Comment 16•22 years ago
|
||
checked in - thanks for the reviews
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Comment 17•22 years ago
|
||
*** Bug 214027 has been marked as a duplicate of this bug. ***
Assignee | ||
Comment 18•20 years ago
|
||
attaching favicon from url here so it won't get lost
Comment 19•20 years ago
|
||
Isn't this fixed already?
Assignee | ||
Comment 20•20 years ago
|
||
(In reply to comment #19)
> Isn't this fixed already?
yes it is. I added the testcase to allow testing further patches to the ico
decoder against previously reported bugs, to make sure not to regress them.
You need to log in
before you can comment on or make changes to this bug.
Description
•