Tga with alpha. Wrong visualization

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

Moderators: XnTriq, helmut, xnview

jeeg
Posts: 62
Joined: Wed Mar 18, 2009 8:11 pm

Tga with alpha. Wrong visualization

Post by jeeg »

I found a problem in Xnview.
It happens only with TGA 32 bit. In other words TGA with an alpha channel!

if I see a TGA with alpha and turn off the alpha from the view menu to only see the rgb channel I see a completely wrong picture full of black areas!
If I tell Xnview to only show me the alpha it shows a correct alpha!
If convert the TGA to other formats like Tiff I can see the rgb channels perfectly!

In this first picture you see the same image shown in Xnview and in Photoshop. Both application are showing only the rgb channel. The alpha is turned off in xnview too. As you can see in xnview I see a lots of black areas! This happen continuously with every tga 32bit.
https://pixhost.org/show/789/42423263_tga_issue.jpg

In this second picture you can see the alpha both in photoshop e xnview. No problem here. Same alpha in both application.
https://pixhost.org/show/789/42423259_tga_alpha_ok.jpg

In this third picture I show you the same image converted to a 32bit tiff. Perfect visualization in both photoshop and xnview!
https://pixhost.org/show/789/42423241_tiff_ok.jpg

Please! Fix the tga format! I always use that format and since the last version of Xnview I always have to use photoshop to see my tga instead!
User avatar
xnview
Author of XnView
Posts: 44593
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Tga with alpha. Wrong visualization

Post by xnview »

is it possible to have the TGA file
Pierre.
jeeg
Posts: 62
Joined: Wed Mar 18, 2009 8:11 pm

Re: Tga with alpha. Wrong visualization

Post by jeeg »

Yes of course!
But any tga with alpha have the same problems.

Here it is:
http://www.mediafire.com/file/7i8i337gt ... _color.rar

Meanwhile I installed XnviewMP and it works perfectly. It doesn't have any problems with 32bit tga.

One question if possible!
In xnviewMp I have to turn off "Use alpha channel" every single time I view a photo. Is there a way to have the "use alpha channel" always off?
I cannot find the option in the preferences.
User avatar
xnview
Author of XnView
Posts: 44593
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Tga with alpha. Wrong visualization

Post by xnview »

the file is correctly viewed, in Paint.net it's the same. So it's strange that photoshop create like that the alpha channel.
Pierre.
jeeg
Posts: 62
Joined: Wed Mar 18, 2009 8:11 pm

Re: Tga with alpha. Wrong visualization

Post by jeeg »

Wait...
In Photoshop I see it correctly. I see it wrong in Xnview (lots of black areas).
In XnviewMP instead is perfect, like in photoshop.
User avatar
xnview
Author of XnView
Posts: 44593
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Tga with alpha. Wrong visualization

Post by xnview »

jeeg wrote:Wait...
In Photoshop I see it correctly. I see it wrong in Xnview (lots of black areas).
In XnviewMP instead is perfect, like in photoshop.
you have not the same thing in XnView Classic and XnView MP?
Pierre.
jeeg
Posts: 62
Joined: Wed Mar 18, 2009 8:11 pm

Re: Tga with alpha. Wrong visualization

Post by jeeg »

No.
I see Tgas (32bit) wrong only in Xnview classic.
XnviewMP is correct.

I also tried resetting Xnview deleting the ini files. But I get same problems.
I use Xnview since years and only the last version give me problems with those tga. The previous versions always worked well!
User avatar
xnview
Author of XnView
Posts: 44593
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Tga with alpha. Wrong visualization

Post by xnview »

as you can see, i have the same thing
Clipboard-1.png
You do not have the required permissions to view the files attached to this post.
Pierre.
User avatar
XnTriq
Moderator & Librarian
Posts: 6376
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: Tga with alpha. Wrong visualization

Post by XnTriq »

Reproduced with XnView v2.40 :bugconfirmed:
  1. Download carrozzeria_color.rar.
  2. Extract carrozzeria_color.tga and open it in XnView Classic as well as XnView MP.
  3. Deactivate ViewUse alpha channel in both Classic and MP.
You do not have the required permissions to view the files attached to this post.
jeeg
Posts: 62
Joined: Wed Mar 18, 2009 8:11 pm

Re: Tga with alpha. Wrong visualization

Post by jeeg »

The same file opened bot in Xnview and XnviewMP.
With alpha on (weird), with alpha off (the ugly black areas), with only the alpha visible (this is ok!).
You do not have the required permissions to view the files attached to this post.
User avatar
xnview
Author of XnView
Posts: 44593
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Tga with alpha. Wrong visualization

Post by xnview »

ok, i can reproduce, the problem comes with 'High zoom quality' - reduce
Pierre.
jeeg
Posts: 62
Joined: Wed Mar 18, 2009 8:11 pm

Re: Tga with alpha. Wrong visualization

Post by jeeg »

Yesssss! It works now!
I turned off "reduce" from the options and now I see the Tga correctly!
Thank you!
jeeg
Posts: 62
Joined: Wed Mar 18, 2009 8:11 pm

Re: Tga with alpha. Wrong visualization

Post by jeeg »

I discovered that I cannot keep "reduce" off! bwecause quality of scaled picture with "reduce" off is very bad!
So I have to keep "reduce" on and I turn it off only when needed (with 32bit tgas).

I hope you will solve this bug in the next xnview so I don't have to turn on and off that parameter everyday (or using XnviewMp that miss a few things).

Bye!
jeeg
Posts: 62
Joined: Wed Mar 18, 2009 8:11 pm

Re: Tga with alpha. Wrong visualization

Post by jeeg »

I found the perfect solution to that bug!
I forget that is it possible to download the old versions of Xnview! How stupid I was!
So I removed Xnview 2.40 and I installed Xnview 2.39!
It works perfectly with 32bit TGAs.
Bye. :P
User avatar
Peter2
XnThusiast
Posts: 1347
Joined: Thu Nov 24, 2005 3:07 pm
Location: CH

Re: Tga with alpha. Wrong visualization

Post by Peter2 »

Should be fixed with 2.41 - see download-page.
XnViewMP <Current version> German, XnConvert <Current version>, Win 10