PictView fails to display 32-bit bitmaps with alpha channel

Discussion of bugs and problems found in Altap Salamander. In your reports, please be as descriptive as possible, and report one incident per report. Do not post crash reports here, send us the generated bug report by email instead, please.
User avatar
crystalidea
Posts: 205
Joined: 09 Dec 2005, 15:13
Contact:

PictView fails to display 32-bit bitmaps with alpha channel

Post by crystalidea »

Please look at this icon
http://rapidshare.de/files/35114583/CD-Audio.rar.html
while Axialis IconWorkShop and many others display it well.
Last edited by crystalidea on 08 May 2012, 13:07, edited 1 time in total.
User avatar
Datalog
Posts: 244
Joined: 10 Dec 2005, 11:21
Location: Prague, Czech Republic
Contact:

Post by Datalog »

Where is a problem, how it'd look?

And which one (of 21) failes? These with shadow at bottom or without?
Jan Patera
Plugin Developer
Plugin Developer
Posts: 707
Joined: 08 Dec 2005, 14:33
Location: Prague, Czech Republic
Contact:

Re: PictView failes to display 32-bit icons correctly

Post by Jan Patera »

Looks like the AND masks of the 32bit images are wrong: Some of the pixels along the edges (both outer & inner) of the disc & its shadow are marked transparent in the 1-bit AND mask but they are non-transparent in the XOR mask (or semi-transparent if you take the alpha-channel into account). PictView ignores the AND mask of 32bit images when making thumbnails, but doesn't in view mode. For correct images this should not matter.
Jan Rysavy
ALTAP Staff
ALTAP Staff
Posts: 5231
Joined: 08 Dec 2005, 06:34
Location: Novy Bor, Czech Republic
Contact:

Post by Jan Rysavy »

XPiS, do you have idea where this icon comes from?
User avatar
crystalidea
Posts: 205
Joined: 09 Dec 2005, 15:13
Contact:

Post by crystalidea »

BTW: this also a bug for 32 bit bmps: take a look.
http://rapidshare.de/files/35186005/Chart1.bmp.html
This images are from different icons sets, most commercial, but I have >10k 32 bit icons, all of them are displayed by PictView incorrectly.
Take the Axialis IconWorkshop as an example, it's goot at diplaying any type of icon.
To reproduce the bug on any icon:
1. Take a 32-bit png image with alpha channel
2. Use IconWorkshop to convert it to .ico
Jan Patera
Plugin Developer
Plugin Developer
Posts: 707
Joined: 08 Dec 2005, 14:33
Location: Prague, Czech Republic
Contact:

32bit ICO's: PictView or IconWorkshop bug?

Post by Jan Patera »

XPiS wrote:This images are from different icons sets, most commercial, but I have >10k 32 bit icons, all of them are displayed by PictView incorrectly.
2. Use IconWorkshop to convert it to .ico
Aha, so it is a bug of IconWorkshop.
Do you have any ICO's that are displayed by PictView "incorrectly" that you are 100% sure they were not created in IconWorkshop?
Could you send me some more samples?
User avatar
crystalidea
Posts: 205
Joined: 09 Dec 2005, 15:13
Contact:

Post by crystalidea »

Jan Patera, I use this icons created by IconWorkwhop in my apps, everything is ok when displaying whem. And one more moment. The bmp file I've uploaded has a alpha channel, I also use such bitnmaps on toolbars (owner draw), there's a special function (asm made, not from Axialis :)) that display it very well.
Jan Patera
Plugin Developer
Plugin Developer
Posts: 707
Joined: 08 Dec 2005, 14:33
Location: Prague, Czech Republic
Contact:

Post by Jan Patera »

OK, could you please specify why you sent me the BMP? Is there something wrong with it (I see it displayed correctly)? The subject is about ICOns. Could you please send me few more wrong ICOns? Thank you.
User avatar
crystalidea
Posts: 205
Joined: 09 Dec 2005, 15:13
Contact:

Post by crystalidea »

Jan Patera,
1. The BMP. The correct display of this bmp is:
http://rapidshare.de/files/35213883/correct.png.html
User avatar
crystalidea
Posts: 205
Joined: 09 Dec 2005, 15:13
Contact:

Post by crystalidea »

2. Click here:
http://customize.ru/icons_suites.html
and download the following file "Longhorn Alternative Drivers "
(http://customize.ru/antileech/download/ ... rivers.rar)
All icons in this set are displayed wrong
Jan Patera
Plugin Developer
Plugin Developer
Posts: 707
Joined: 08 Dec 2005, 14:33
Location: Prague, Czech Republic
Contact:

Post by Jan Patera »

XPiS wrote:Jan Patera,
1. The BMP. The correct display of this bmp is:
http://rapidshare.de/files/35213883/correct.png.html
Hi! If you for some reason do not want to use email, could you please use some reliable file sending service? I suggest www.yousendit.com or www.uschovna.cz (both have English interfaces). With RapidShare, I have to wait for several hours before it lets me download the file. If I miss a window when I can do it, I have to wait another couple of hours, or dozens of minutes at least.
I repeat:
Could you please send me some more buggy ICOns that are wrongly displayed? Thank you.
Jan Patera
Plugin Developer
Plugin Developer
Posts: 707
Joined: 08 Dec 2005, 14:33
Location: Prague, Czech Republic
Contact:

Post by Jan Patera »

XPiS wrote:All icons in this set are displayed wrong
We were both writing a message at the same time ;-) Thanks for the link!
User avatar
crystalidea
Posts: 205
Joined: 09 Dec 2005, 15:13
Contact:

Post by crystalidea »

Jan Patera wrote:Thanks for the link!
No problem :) hope you'll fix that
User avatar
Ether
Posts: 1471
Joined: 10 May 2007, 16:08
Location: Czech Republic
Contact:

Re: PictView failes to display 32-bit icons correctly

Post by Ether »

Is it fixed?

I tested the Longhorn Alternative Drivers icon set with AS v2.53b1pb38 (that's PV v.2.08b1pb38) and the icons seem to be displayed without any errors and they look the same as their PNG counterparts.
Ελληνικά rulez.
Jan Patera
Plugin Developer
Plugin Developer
Posts: 707
Joined: 08 Dec 2005, 14:33
Location: Prague, Czech Republic
Contact:

Re: PictView failes to display 32-bit icons correctly

Post by Jan Patera »

ether wrote:Is it fixed?
Because the report is over 3 years old and there have been several improvements regarding alpha-blending since then, I presume yes.
Post Reply