Page 1 of 1

BUG: Image transparency display is not consistent...

Posted: Fri Jun 13, 2014 3:02 am
by ghost zero
BUG: Image transparency display is not consistent. Example: This logo's background is transparent...

http://s27.postimg.org/p7h058in7/logo.png

...but in XnView, the transparency is displayed only for thumbnail--not for preview or image view. Can this be fixed to be consistent so that transparency is either always displayed or not?

XnView 2.22

Re: BUG: Image transparency display is not consistent...

Posted: Fri Jun 13, 2014 7:18 am
by xnview
do you have 'use alpha channel'?

Re: BUG: Image transparency display is not consistent...

Posted: Fri Jun 13, 2014 8:50 am
by ghost zero
where do i find the setting 'use alpha channel' ?

Re: BUG: Image transparency display is not consistent...

Posted: Fri Jun 13, 2014 9:10 am
by cday
ghost zero wrote:where do i find the setting 'use alpha channel' ?
There's a setting: Tools > Options > General > Operations -- Ignore alpha channel

So I guess that should be unchecked...

Re: BUG: Image transparency display is not consistent...

Posted: Fri Jun 13, 2014 9:31 am
by ghost zero
i do currently have that unchecked, which means alpha channels should show. so it's a bug that the alpha channel is not displaying in preview and image view?

Re: BUG: Image transparency display is not consistent...

Posted: Fri Jun 13, 2014 12:00 pm
by thibaud
3 ways:

Ctrl+h
right click on preview > use alpha channel (shortcut ctrl+h)
Menu: View > preview > use alpha channel (shortcut ctrl+h)

Re: BUG: Image transparency display is not consistent...

Posted: Fri Jun 13, 2014 1:33 pm
by ghost zero
thibaud wrote:3 ways:

Ctrl+h
right click on preview > use alpha channel (shortcut ctrl+h)
Menu: View > preview > use alpha channel (shortcut ctrl+h)
do i have to set that separately for each?

- thumbnails
- preview
- image view

shouldn't there be just a single universal setting to keep this consistent throughout the program?

Re: BUG: Image transparency display is not consistent...

Posted: Mon Jun 16, 2014 3:30 am
by XnTriq
Recommended settings:
  • Tools » Options...
    • General » Operations » Ignore alpha channel = Off (Thanks, cday!)
    • Read/Write » Read » PNG » Parameters » Compose image with transparency = Off
    • Read/Write » Read » PNG » Parameters » Compose image with alpha (32bits) = Off
    • View » View » Background colour = R128/G128/B128 (optional)
    • View » View » Use checkerboard pattern as background = On (optional)
    • Fullscreen » Background colour = R128/G128/B128 (optional)
  • Browser mode: View » Preview
    • Use transparent index (<=8bits) or alpha channel = On
    • Use alpha channel = On
    • Show Mask = Off
  • Viewer mode: View
    • Use transparent index (<=8bits) or alpha channel = On
    • Use alpha channel = On
    • Show Mask = Off
[color=green]xnview.ini[/color] (optional) wrote:

Code: Select all

[View]
CheckerColor1=8947848
CheckerColor2=8421504
CheckerSize=8
XnView Wiki (UI-less Settings » [url=http://www.xnview.com/wiki/index.php?title=UI-less_Settings#View]View[/url]) wrote:
CheckerColor1
  • Changes the first color of the checkerboard pattern background.
    Value: Raw color (integer) or formatted color string
CheckerColor2
  • Changes the second color of the checkerboard pattern background.
    Value: Raw color (integer) or formatted color string
CheckerSize
  • Changes the size of squares in the checkerboard pattern background.
    Value: Integer, default value is 8

Re: BUG: Image transparency display is not consistent...

Posted: Mon Jun 16, 2014 11:13 am
by ghost zero
thanks, i just needed to set these to get the transparency working in preview and image view...

Tools » Options...
◦Read/Write » Read » PNG » Parameters » Compose image with transparency = Off
◦Read/Write » Read » PNG » Parameters » Compose image with alpha (32bits) = Off

i didn't want the checkboard and i already have a custom background color.

NOTE: you mean "view > preview".

Re: BUG: Image transparency display is not consistent...

Posted: Mon Jun 16, 2014 11:31 am
by ghost zero
but it seems counter intuitive. i would expect the opposite behavior with these settings...

Tools » Options...
◦Read/Write » Read » PNG » Parameters » Compose image with transparency = Off
◦Read/Write » Read » PNG » Parameters » Compose image with alpha (32bits) = Off

...shouldn't composing an image with transparency/alpha make them used? why do we have to turn these off to make them used?

Re: BUG: Image transparency display is not consistent...

Posted: Mon Jun 16, 2014 3:45 pm
by XnTriq
ghost zero wrote:NOTE: you mean "view > preview".
You're right, I forgot about browser mode. Thanks for the hint! I've edited my previous post accordingly.